diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-09-14 15:07:31 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-09-14 15:10:46 +0800 |
commit | 5bbd7fb390a539a7183bccc5f2b75b4e564ed398 (patch) | |
tree | 1c13d07970c559b460e83d686ce71cbb484de2ab /core/vm/interpreter.go | |
parent | 79b11121a7e4beef0d0297894289200b9842c36c (diff) | |
download | dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.gz dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.bz2 dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.lz dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.xz dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.tar.zst dexon-5bbd7fb390a539a7183bccc5f2b75b4e564ed398.zip |
consensus, core, params: rebrand Metro to Byzantium
Diffstat (limited to 'core/vm/interpreter.go')
-rw-r--r-- | core/vm/interpreter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index d3e24a7a4..b0d796a44 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -70,8 +70,8 @@ func NewInterpreter(evm *EVM, cfg Config) *Interpreter { // we'll set the default jump table. if !cfg.JumpTable[STOP].valid { switch { - case evm.ChainConfig().IsMetropolis(evm.BlockNumber): - cfg.JumpTable = metropolisInstructionSet + case evm.ChainConfig().IsByzantium(evm.BlockNumber): + cfg.JumpTable = byzantiumInstructionSet case evm.ChainConfig().IsHomestead(evm.BlockNumber): cfg.JumpTable = homesteadInstructionSet default: @@ -88,7 +88,7 @@ func NewInterpreter(evm *EVM, cfg Config) *Interpreter { } func (in *Interpreter) enforceRestrictions(op OpCode, operation operation, stack *Stack) error { - if in.evm.chainRules.IsMetropolis { + if in.evm.chainRules.IsByzantium { if in.readOnly { // If the interpreter is operating in readonly mode, make sure no // state-modifying operation is performed. The 3rd stack item |