diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-08-16 20:32:59 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-16 20:32:59 +0800 |
commit | b70a73cd3e49e249a9ab2c41c2dd268786dcd1a3 (patch) | |
tree | 48364d1e6576be345fb97e44afb3d5c00eb7e9ac /core/vm/jump_table.go | |
parent | 0b978f91b6adcc4b595391096a72db73bc625bcf (diff) | |
download | go-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.go | 7 |
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 } |