diff --git a/core/vm/environment.go b/core/vm/environment.go index 4a5d2d2da4..b74b3a7950 100644 --- a/core/vm/environment.go +++ b/core/vm/environment.go @@ -74,7 +74,7 @@ type EVM struct { vmConfig Config // global (to this context) ethereum virtual machine // used throughout the execution of the tx. - interpreter EVMInterpreter + interpreter *Interpreter // abort is used to abort the EVM calling operations // NOTE: must be set atomically abort int32 @@ -325,4 +325,4 @@ func (evm *EVM) Create(caller ContractRef, code []byte, gas, value *big.Int) (re func (evm *EVM) ChainConfig() *params.ChainConfig { return evm.chainConfig } // Interpreter returns the EVM interpreter -func (evm *EVM) Interpreter() EVMInterpreter { return evm.interpreter } +func (evm *EVM) Interpreter() *Interpreter { return evm.interpreter } diff --git a/core/vm/interface.go b/core/vm/interface.go index ea39cf8e15..b81f591252 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -22,14 +22,6 @@ import ( "github.com/ethereum/go-ethereum/common" ) -// EVMInterpreter is the basic interface for an implementation of the EVM. -type EVMInterpreter interface { - // Run should execute the given contract with the input given in in - // and return the contract execution return bytes or an error if it - // failed. - Run(c *Contract, in []byte) ([]byte, error) -} - // StateDB is an EVM database for full state querying. type StateDB interface { GetAccount(common.Address) Account