Skip to content

Commit a851295

Browse files
committed
FIXME: migrate OP_TEMPLATEHASH to 0xce
1 parent bfda78a commit a851295

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/script/script.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ enum opcodetype
209209
// Opcode added by BIP 342 (Tapscript)
210210
OP_CHECKSIGADD = 0xba,
211211

212-
// Opcode added by BIP xx (Tapscript-only, formerly OP_SUCCESS187)
213-
OP_TEMPLATEHASH = 0xbb,
212+
// Opcode added by BIP xx (Tapscript-only, formerly OP_SUCCESS206)
213+
OP_TEMPLATEHASH = 0xce,
214214

215215
OP_INVALIDOPCODE = 0xff,
216216
};

test/functional/test_framework/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ def __new__(cls, n):
250250
# BIP 342 opcodes (Tapscript)
251251
OP_CHECKSIGADD = CScriptOp(0xba)
252252

253-
# BIP xx opcode (Tapscript-only, formerly OP_SUCCESS187)
254-
OP_TEMPLATEHASH = CScriptOp(0xbb)
253+
# BIP xx opcode (Tapscript-only, formerly OP_SUCCESS206)
254+
OP_TEMPLATEHASH = CScriptOp(0xce)
255255

256256
OP_INVALIDOPCODE = CScriptOp(0xff)
257257

0 commit comments

Comments
 (0)