From aa166dd9f0d32412bcf217335645d3f37c3dc3d0 Mon Sep 17 00:00:00 2001 From: thomasv Date: Thu, 21 Feb 2013 15:36:38 +0100 Subject: [PATCH] fix p2sh test --- lib/bitcoin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bitcoin.py b/lib/bitcoin.py index edac7579e..970f100ca 100644 --- a/lib/bitcoin.py +++ b/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