Browse Source

inputs_to_sign: handle missing num_sig

283
ThomasV 10 years ago
parent
commit
cabd6bbb2c
  1. 5
      lib/transaction.py

5
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']):

Loading…
Cancel
Save