mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
do not actually compute the nested p2wsh-p2sh script if just estimating size (#4412)
This commit is contained in:
parent
610b37890f
commit
c6fce4b7cc
1 changed files with 4 additions and 1 deletions
|
@ -825,6 +825,9 @@ class Transaction:
|
||||||
scriptSig = bitcoin.p2wpkh_nested_script(pubkey)
|
scriptSig = bitcoin.p2wpkh_nested_script(pubkey)
|
||||||
return push_script(scriptSig)
|
return push_script(scriptSig)
|
||||||
elif _type == 'p2wsh-p2sh':
|
elif _type == 'p2wsh-p2sh':
|
||||||
|
if estimate_size:
|
||||||
|
witness_script = ''
|
||||||
|
else:
|
||||||
witness_script = self.get_preimage_script(txin)
|
witness_script = self.get_preimage_script(txin)
|
||||||
scriptSig = bitcoin.p2wsh_nested_script(witness_script)
|
scriptSig = bitcoin.p2wsh_nested_script(witness_script)
|
||||||
return push_script(scriptSig)
|
return push_script(scriptSig)
|
||||||
|
|
Loading…
Add table
Reference in a new issue