Skip to content

Commit

Permalink
change OP_CHECKGROTH16VERIFY to OP_CHECKZKPVERIFY
Browse files Browse the repository at this point in the history
  • Loading branch information
zilong-dai committed Oct 31, 2024
1 parent 4f90df1 commit c04c56c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions qa/rpc-tests/test_framework/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def __new__(cls, n):
OP_NOP1 = CScriptOp(0xb0)
OP_CHECKLOCKTIMEVERIFY = CScriptOp(0xb1)
OP_CHECKSEQUENCEVERIFY = CScriptOp(0xb2)
OP_CHECKGROTH16VERIFY = CScriptOp(0xb3)
OP_CHECKZKPVERIFY = CScriptOp(0xb3)
OP_NOP5 = CScriptOp(0xb4)
OP_NOP6 = CScriptOp(0xb5)
OP_NOP7 = CScriptOp(0xb6)
Expand Down Expand Up @@ -362,7 +362,7 @@ def __new__(cls, n):
OP_NOP1,
OP_CHECKLOCKTIMEVERIFY,
OP_CHECKSEQUENCEVERIFY,
OP_CHECKGROTH16VERIFY,
OP_CHECKZKPVERIFY,
OP_NOP5,
OP_NOP6,
OP_NOP7,
Expand Down Expand Up @@ -481,7 +481,7 @@ def __new__(cls, n):
OP_NOP1 : 'OP_NOP1',
OP_CHECKLOCKTIMEVERIFY : 'OP_CHECKLOCKTIMEVERIFY',
OP_CHECKSEQUENCEVERIFY : 'OP_CHECKSEQUENCEVERIFY',
OP_CHECKGROTH16VERIFY : 'OP_CHECKGROTH16VERIFY',
OP_CHECKZKPVERIFY : 'OP_CHECKZKPVERIFY',
OP_NOP5 : 'OP_NOP5',
OP_NOP6 : 'OP_NOP6',
OP_NOP7 : 'OP_NOP7',
Expand Down Expand Up @@ -600,7 +600,7 @@ def __new__(cls, n):
'OP_NOP1' : OP_NOP1,
'OP_CHECKLOCKTIMEVERIFY' : OP_CHECKLOCKTIMEVERIFY,
'OP_CHECKSEQUENCEVERIFY' : OP_CHECKSEQUENCEVERIFY,
'OP_CHECKGROTH16VERIFY' : OP_CHECKGROTH16VERIFY,
'OP_CHECKZKPVERIFY' : OP_CHECKZKPVERIFY,
'OP_NOP5' : OP_NOP5,
'OP_NOP6' : OP_NOP6,
'OP_NOP7' : OP_NOP7,
Expand Down
2 changes: 1 addition & 1 deletion src/script/interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, un
}
}
break;
case OP_CHECKGROTH16VERIFY:
case OP_CHECKZKPVERIFY:
{
// Ensure stack has enough elements for the groth16 proof verification
if (stack.size() < 12)
Expand Down
2 changes: 1 addition & 1 deletion src/script/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const char* GetOpName(opcodetype opcode)
case OP_NOP1 : return "OP_NOP1";
case OP_CHECKLOCKTIMEVERIFY : return "OP_CHECKLOCKTIMEVERIFY";
case OP_CHECKSEQUENCEVERIFY : return "OP_CHECKSEQUENCEVERIFY";
case OP_CHECKGROTH16VERIFY : return "OP_CHECKGROTH16VERIFY";
case OP_CHECKZKPVERIFY : return "OP_CHECKZKPVERIFY";
case OP_NOP5 : return "OP_NOP5";
case OP_NOP6 : return "OP_NOP6";
case OP_NOP7 : return "OP_NOP7";
Expand Down
2 changes: 1 addition & 1 deletion src/script/script.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ enum opcodetype
OP_NOP2 = OP_CHECKLOCKTIMEVERIFY,
OP_CHECKSEQUENCEVERIFY = 0xb2,
OP_NOP3 = OP_CHECKSEQUENCEVERIFY,
OP_CHECKGROTH16VERIFY = 0xb3,
OP_CHECKZKPVERIFY = 0xb3,
OP_NOP5 = 0xb4,
OP_NOP6 = 0xb5,
OP_NOP7 = 0xb6,
Expand Down

0 comments on commit c04c56c

Please sign in to comment.