tMerge pull request #3502 from SomberNight/tx_size_est_multisig - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit a13775e5333b044334806dec264d21dc00cfc542 (DIR) parent 8ae171777220603129ba599e2f6383e13b355020 (HTM) 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: M lib/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/lib/transaction.py b/lib/transaction.py t@@ -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: