Browse Source

fix p2sh test

283
thomasv 12 years ago
parent
commit
aa166dd9f0
  1. 4
      lib/bitcoin.py

4
lib/bitcoin.py

@ -348,9 +348,9 @@ def raw_tx( inputs, outputs, for_sig = None ):
script += inner_script
elif for_sig==i:
pubkeys = txin.get('multisig_pubkeys')
pubkeys = txin.get('pubkeys')
if pubkeys:
num = txin['multisig_num']
num = txin['p2sh_num']
script = multisig_script(pubkeys, num) # p2sh uses the inner script
else:
script = txin['raw_output_script'] # scriptsig

Loading…
Cancel
Save