Browse Source

serialize: do not use x_pubkeys if we have enough signatures.

283
ThomasV 11 years ago
parent
commit
3f15a8f217
  1. 8
      lib/transaction.py

8
lib/transaction.py

@ -540,8 +540,12 @@ class Transaction:
sig_list.append(NO_SIGNATURE)
sig_list = ''.join( map( lambda x: push_script(x), sig_list))
# extended pubkeys (with bip32 derivation)
x_pubkeys = txin['x_pubkeys']
if len(signatures) < n_sig:
# extended pubkeys (with bip32 derivation)
x_pubkeys = txin['x_pubkeys']
else:
# if we have enough signatures, we use the actual pubkeys
x_pubkeys = txin['pubkeys']
if not p2sh:
script = sig_list

Loading…
Cancel
Save