commit bf2c07ff2a7eb4051558ef77980d623472bde023
parent 368aaebb23f7c0c6a7cc1bd603d2a3eefa65590f
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 8 Nov 2017 14:48:46 +0100
fix #3244
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/transaction.py b/lib/transaction.py
@@ -440,9 +440,9 @@ def parse_witness(vds, txin):
if txin['type'] == 'coinbase':
pass
elif n > 2:
- txin['num_sig'] = n - 2
txin['signatures'] = parse_sig(w[1:-1])
m, n, x_pubkeys, pubkeys, witnessScript = parse_redeemScript(bfh(w[-1]))
+ txin['num_sig'] = m
txin['x_pubkeys'] = x_pubkeys
txin['pubkeys'] = pubkeys
txin['witnessScript'] = witnessScript