mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
4cd72c8328
* restore TEVM * fuzzing and property based * comment * lint * stack callback into defer ater checking an error * sequential tests
25 lines
517 B
Go
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)}
|
|
}
|