Skip to content

Commit

Permalink
Add EPHEMERAL_ANCHOR_SCRIPT to test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Nov 9, 2023
1 parent ef6e074 commit e8fd440
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/test_framework/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,3 +926,5 @@ def taproot_construct(pubkey, scripts=None, treat_internal_as_infinity=False):

def is_op_success(o):
return o == 0x50 or o == 0x62 or o == 0x89 or o == 0x8a or o == 0x8d or o == 0x8e or (o >= 0x7e and o <= 0x81) or (o >= 0x83 and o <= 0x86) or (o >= 0x95 and o <= 0x99) or (o >= 0xbb and o <= 0xfe)

EPHEMERAL_ANCHOR_SCRIPT = CScript([OP_TRUE, b'\x4e\x73'])

0 comments on commit e8fd440

Please sign in to comment.