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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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: |
|
|
|