Skip to content

Commit fa08435

Browse files
committed
adding OP_CHECKLOCKTIMEVERIFY
1 parent 1aa9e17 commit fa08435

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bitcoin/core/script.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ def __new__(cls, n):
230230
# expansion
231231
OP_NOP1 = CScriptOp(0xb0)
232232
OP_NOP2 = CScriptOp(0xb1)
233+
OP_CHECKLOCKTIMEVERIFY = OP_NOP2
233234
OP_NOP3 = CScriptOp(0xb2)
234235
OP_NOP4 = CScriptOp(0xb3)
235236
OP_NOP5 = CScriptOp(0xb4)
@@ -351,6 +352,7 @@ def __new__(cls, n):
351352
OP_CHECKMULTISIGVERIFY: 'OP_CHECKMULTISIGVERIFY',
352353
OP_NOP1: 'OP_NOP1',
353354
OP_NOP2: 'OP_NOP2',
355+
OP_CHECKLOCKTIMEVERIFY: 'OP_CHECKLOCKTIMEVERIFY',
354356
OP_NOP3: 'OP_NOP3',
355357
OP_NOP4: 'OP_NOP4',
356358
OP_NOP5: 'OP_NOP5',
@@ -470,6 +472,7 @@ def __new__(cls, n):
470472
'OP_CHECKMULTISIGVERIFY': OP_CHECKMULTISIGVERIFY,
471473
'OP_NOP1': OP_NOP1,
472474
'OP_NOP2': OP_NOP2,
475+
'OP_CHECKLOCKTIMEVERIFY': OP_CHECKLOCKTIMEVERIFY,
473476
'OP_NOP3': OP_NOP3,
474477
'OP_NOP4': OP_NOP4,
475478
'OP_NOP5': OP_NOP5,
@@ -1030,6 +1033,7 @@ def SignatureHash(script, txTo, inIdx, hashtype):
10301033
'OP_CHECKMULTISIGVERIFY',
10311034
'OP_NOP1',
10321035
'OP_NOP2',
1036+
'OP_CHECKLOCKTIMEVERIFY',
10331037
'OP_NOP3',
10341038
'OP_NOP4',
10351039
'OP_NOP5',
@@ -1061,4 +1065,4 @@ def SignatureHash(script, txTo, inIdx, hashtype):
10611065
'RawSignatureHash',
10621066
'SignatureHash',
10631067
'IsLowDERSignature',
1064-
)
1068+
)

0 commit comments

Comments
 (0)