aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/jump_table.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/jump_table.go
parent0b978f91b6adcc4b595391096a72db73bc625bcf (diff)
downloadgo-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.tar.gz
go-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.tar.zst
go-tangerine-b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3.zip
core/vm: implement REVERT metropolis opcode
Diffstat (limited to 'core/vm/jump_table.go')
-rw-r--r--core/vm/jump_table.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go
index 2d238f7a1..2d7697e9c 100644
--- a/core/vm/jump_table.go
+++ b/core/vm/jump_table.go
@@ -89,6 +89,13 @@ func NewMetropolisInstructionSet() [256]operation {
memorySize: memoryReturnDataCopy,
valid: true,
}
+ instructionSet[REVERT] = operation{
+ execute: opRevert,
+ gasCost: constGasFunc(GasFastestStep),
+ validateStack: makeStackFunc(2, 0),
+ valid: true,
+ reverts: true,
+ }
return instructionSet
}