electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 9afe0d8aaf19776d6f28576f217af7dd9c44f349
parent 963d542ac83f527b4feeef1ad504194470330daf
Author: thomasv <thomasv@gitorious>
Date:   Tue, 26 Feb 2013 18:18:36 +0100

fix: input_info missing in transaction

Diffstat:
Mlib/bitcoin.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bitcoin.py b/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