do not add output if it does not have an address (coinbase)
[electrum-server.git] / backends / bitcoind / deserialize.py
index 395e152..613fa7c 100644 (file)
@@ -289,7 +289,7 @@ def parse_Transaction(vds, is_coinbase):
   d['outputs'] = []
   for i in xrange(n_vout):
       o = parse_TxOut(vds, i)
-      if o['address'] is not None:
+      if o['address'] != "(None)":
           d['outputs'].append(o)
   d['lockTime'] = vds.read_uint32()
   return d