Browse Source

fix: input_info missing in transaction

283
thomasv 12 years ago
parent
commit
9afe0d8aaf
  1. 3
      lib/bitcoin.py

3
lib/bitcoin.py

@ -474,6 +474,7 @@ class Transaction:
self.inputs = self.d['inputs']
self.outputs = self.d['outputs']
self.outputs = map(lambda x: (x['address'],x['value']), self.outputs)
self.input_info = None
@classmethod
def from_io(klass, inputs, outputs):
@ -733,7 +734,7 @@ class Transaction:
"hex":self.raw,
"complete":self.is_complete
}
if not self.is_complete:
if not self.is_complete and self.input_info:
out['input_info'] = repr(self.input_info).replace(' ','')
return out

Loading…
Cancel
Save