Commit eb5a7d2c authored by Artem Brazhnikov's avatar Artem Brazhnikov
Browse files

add reg opcodes

No related merge requests found
Showing with 12 additions and 0 deletions
+12 -0
......@@ -504,6 +504,9 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, un
break;
case OP_DROP:
case OP_REG_NEW:
case OP_REG_UPDATE:
case OP_UNREG:
{
// (x -- )
if (stack.size() < 1)
......
......@@ -150,6 +150,11 @@ const char* GetOpName(opcodetype opcode)
case OP_NOP9 : return "OP_NOP9";
case OP_NOP10 : return "OP_NOP10";
// registration
case OP_REG_NEW : return "OP_REG_NEW";
case OP_REG_UPDATE : return "OP_REG_UPDATE";
case OP_UNREG : return "OP_UNREG";
case OP_INVALIDOPCODE : return "OP_INVALIDOPCODE";
// Note:
......
......@@ -164,6 +164,10 @@ enum opcodetype
OP_NOP9 = 0xb8,
OP_NOP10 = 0xb9,
// registration
OP_REG_NEW = 0xc1,
OP_REG_UPDATE = 0xc2,
OP_UNREG = 0xc3,
// template matching params
OP_SMALLDATA = 0xf9,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment