commit a13775e5333b044334806dec264d21dc00cfc542
parent 8ae171777220603129ba599e2f6383e13b355020
Author: ThomasV <thomasv@electrum.org>
Date: Tue, 12 Dec 2017 05:45:19 +0100
Merge pull request #3502 from SomberNight/tx_size_est_multisig
fix: tx size estimation for multisig
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/transaction.py b/lib/transaction.py
@@ -645,7 +645,7 @@ class Transaction:
num_sig = txin.get('num_sig', 1)
if estimate_size:
pubkey_size = self.estimate_pubkey_size_for_txin(txin)
- pk_list = ["00" * pubkey_size] * num_sig
+ pk_list = ["00" * pubkey_size] * len(txin.get('x_pubkeys', [None]))
# we assume that signature will be 0x48 bytes long
sig_list = [ "00" * 0x48 ] * num_sig
else: