Skip to content

Commit 812baaa

Browse files
committed
Switch to BIP341's suggested scheme for outputs without script
1 parent 4538501 commit 812baaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/test_framework/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def TaprootSignatureHash(txTo, spent_utxos, hash_type, input_index = 0, scriptpa
787787

788788
def taproot_tree_helper(scripts):
789789
if len(scripts) == 0:
790-
return ([], bytes(0 for _ in range(32)))
790+
return ([], bytes())
791791
if len(scripts) == 1:
792792
# One entry: treat as a leaf
793793
script = scripts[0]

0 commit comments

Comments
 (0)