mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-06 11:02:18 +00:00
7352b81122
* convert contracts after block execution * check if has tevm code * after review-1 * handle ErrNotFound * typo * tests * tevm code bucket * testdata * execute pre-stage * after merge * test fix * test fix * fix test after merge * disable translation stage * after merge * rename params * rename to Erigon * parallelize EVM translation * fix * logging and fixes * fix * todos * cleanup * revert erigorn renaming * unwind * tevm unwind * fix AppData * non-parallel version * comments
21 lines
407 B
Go
21 lines
407 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)}
|
|
}
|