core/vm: enable istanbul EIPs in the jump table

This commit is contained in:
Péter Szilágyi
2019-08-22 13:41:55 +03:00
parent 46ec63b849
commit 060e33fb4c
2 changed files with 19 additions and 6 deletions

View File

@ -93,6 +93,8 @@ func NewEVMInterpreter(evm *EVM, cfg Config) *EVMInterpreter {
if !cfg.JumpTable[STOP].valid {
var jt JumpTable
switch {
case evm.chainRules.IsIstanbul:
jt = istanbulInstructionSet
case evm.chainRules.IsConstantinople:
jt = constantinopleInstructionSet
case evm.chainRules.IsByzantium: