aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/opcodes.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2017-08-16 20:32:59 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-16 20:32:59 +0800
commitb70a73cd3e49e249a9ab2c41c2dd268786dcd1a3 (patch)
tree48364d1e6576be345fb97e44afb3d5c00eb7e9ac /core/vm/opcodes.go
parent0b978f91b6adcc4b595391096a72db73bc625bcf (diff)
downloadgo-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.tar
go-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.tar.gz
go-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.tar.bz2
go-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.tar.lz
go-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.tar.xz
go-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.tar.zst
go-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.zip
core/vm: implement REVERT metropolis opcode
Diffstat (limited to 'core/vm/opcodes.go')
-rw-r--r--core/vm/opcodes.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/vm/opcodes.go b/core/vm/opcodes.go
index be87cae18..0c6550735 100644
--- a/core/vm/opcodes.go
+++ b/core/vm/opcodes.go
@@ -204,6 +204,7 @@ const (
DELEGATECALL
STATICCALL = 0xfa
+ REVERT = 0xfd
SELFDESTRUCT = 0xff
)
@@ -360,6 +361,7 @@ var opCodeToString = map[OpCode]string{
CALLCODE: "CALLCODE",
DELEGATECALL: "DELEGATECALL",
STATICCALL: "STATICCALL",
+ REVERT: "REVERT",
SELFDESTRUCT: "SELFDESTRUCT",
PUSH: "PUSH",
@@ -509,6 +511,7 @@ var stringToOp = map[string]OpCode{
"CALL": CALL,
"RETURN": RETURN,
"CALLCODE": CALLCODE,
+ "REVERT": REVERT,
"SELFDESTRUCT": SELFDESTRUCT,
}