Browse Source

Merge pull request #3502 from SomberNight/tx_size_est_multisig

fix: tx size estimation for multisig
3.0.x
ThomasV 7 years ago
committed by GitHub
parent
commit
a13775e533
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/transaction.py

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

Loading…
Cancel
Save