mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-01 06:52:35 +02:00
Switch to BIP341's suggested scheme for outputs without script
This commit is contained in:
parent
45385018e1
commit
812baaa1f8
@ -787,7 +787,7 @@ def TaprootSignatureHash(txTo, spent_utxos, hash_type, input_index = 0, scriptpa
|
|||||||
|
|
||||||
def taproot_tree_helper(scripts):
|
def taproot_tree_helper(scripts):
|
||||||
if len(scripts) == 0:
|
if len(scripts) == 0:
|
||||||
return ([], bytes(0 for _ in range(32)))
|
return ([], bytes())
|
||||||
if len(scripts) == 1:
|
if len(scripts) == 1:
|
||||||
# One entry: treat as a leaf
|
# One entry: treat as a leaf
|
||||||
script = scripts[0]
|
script = scripts[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user