electrum

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

commit cabd6bbb2c8c57eec6c5fe0219c1582ea9562f5a
parent fbc581a52e9b9993218e252fe7cac345d05dae5e
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 17 Mar 2015 07:41:27 +0100

inputs_to_sign: handle missing num_sig

Diffstat:
Mlib/transaction.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/transaction.py b/lib/transaction.py @@ -685,9 +685,12 @@ class Transaction: def inputs_to_sign(self): out = set() for txin in self.inputs: + num_sig = txin.get('num_sig') + if num_sig is None: + continue x_signatures = txin['signatures'] signatures = filter(None, x_signatures) - if len(signatures) == txin['num_sig']: + if len(signatures) == num_sig: # input is complete continue for k, x_pubkey in enumerate(txin['x_pubkeys']):