erigon-pulse/core/vm/tevm_interpreter.go
Evgeny Danilenko 4cd72c8328
Keep readonly value while changing interpreters back and forth (#2508)
* restore TEVM

* fuzzing and property based

* comment

* lint

* stack callback into defer ater checking an error

* sequential tests
2021-08-10 09:48:56 +07:00

25 lines
517 B
Go

package vm
// todo: TBD actual TEVM interpreter
// TEVMInterpreter represents an TEVM interpreter
type TEVMInterpreter struct {
*EVMInterpreter
}
type VmType int8
const (
EVMType VmType = 0
TEVMType VmType = 1
)
// NewTEVMInterpreter returns a new instance of the Interpreter.
func NewTEVMInterpreter(evm *EVM, cfg Config) *TEVMInterpreter {
return &TEVMInterpreter{NewEVMInterpreter(evm, cfg)}
}
func NewTEVMInterpreterByVM(vm *VM) *TEVMInterpreter {
return &TEVMInterpreter{NewEVMInterpreterByVM(vm)}
}