do not add output if it does not have an address (coinbase)
authorThomasV <thomasv@gitorious>
Mon, 19 Nov 2012 15:44:12 +0000 (19:44 +0400)
committerThomasV <thomasv@gitorious>
Mon, 19 Nov 2012 15:44:12 +0000 (19:44 +0400)
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