Merge pull request #3502 from SomberNight/tx_size_est_multisig

fix: tx size estimation for multisig
This commit is contained in:
ThomasV 2017-12-12 05:45:19 +01:00 committed by GitHub
commit a13775e533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: