core/vm: implement REVERT metropolis opcode

This commit is contained in:
Jeffrey Wilcke
2017-08-16 15:32:59 +03:00
committed by Péter Szilágyi
parent 0b978f91b6
commit b70a73cd3e
4 changed files with 21 additions and 1 deletions

View File

@ -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
}