Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alexander H
crown-core
Commits
eb5a7d2c
Commit
eb5a7d2c
authored
6 years ago
by
Artem Brazhnikov
Browse files
Options
Download
Email Patches
Plain Diff
add reg opcodes
parent
58cf61b2
206-keys-hashes-opcodes
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/script/interpreter.cpp
+3
-0
src/script/interpreter.cpp
src/script/script.cpp
+5
-0
src/script/script.cpp
src/script/script.h
+4
-0
src/script/script.h
with
12 additions
and
0 deletions
+12
-0
src/script/interpreter.cpp
View file @
eb5a7d2c
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/script/script.cpp
View file @
eb5a7d2c
...
...
@@ -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:
...
...
This diff is collapsed.
Click to expand it.
src/script/script.h
View file @
eb5a7d2c
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help