test: move SEQUENCE_LOCKTIME flags to script

This commit is contained in:
Sjors Provoost committed 2025-11-27 11:10:59 +01:00
1 parent 38c8474d0d
commit 592157b759
2 files changed
+9 -5

No files matched your search

+5
View File
@@ -28,6 +28,11 @@ MAX_PUBKEYS_PER_MULTI_A = 999
LOCKTIME_THRESHOLD = 500000000
ANNEX_TAG = 0x50
SEQUENCE_LOCKTIME_DISABLE_FLAG = (1<<31)
SEQUENCE_LOCKTIME_TYPE_FLAG = (1<<22) # this means use time (0 means height)
SEQUENCE_LOCKTIME_GRANULARITY = 9 # this is a bit-shift
SEQUENCE_LOCKTIME_MASK = 0x0000ffff
LEAF_VERSION_TAPSCRIPT = 0xc0
def hash160(s):