aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-04-02 22:03:12 +0800
committerGitHub <noreply@github.com>2019-04-02 22:03:12 +0800
commite14f8a408c17fd6c57d769cd4635ad6cc8bde769 (patch)
treeba0d75fe1d1797be2322366e3d74cc54f77a6184 /core/vm
parent88d7119ebb7bcb38e16f0feb571c98f2197d7cf3 (diff)
parented34a5e08a475fdf1b3116b1f17879411bfe411d (diff)
downloadgo-tangerine-e14f8a408c17fd6c57d769cd4635ad6cc8bde769.tar
go-tangerine-e14f8a408c17fd6c57d769cd4635ad6cc8bde769.tar.gz
go-tangerine-e14f8a408c17fd6c57d769cd4635ad6cc8bde769.tar.bz2
go-tangerine-e14f8a408c17fd6c57d769cd4635ad6cc8bde769.tar.lz
go-tangerine-e14f8a408c17fd6c57d769cd4635ad6cc8bde769.tar.xz
go-tangerine-e14f8a408c17fd6c57d769cd4635ad6cc8bde769.tar.zst
go-tangerine-e14f8a408c17fd6c57d769cd4635ad6cc8bde769.zip
Merge pull request #19328 from karalabe/preload
core: prefetch next block state concurrently
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/interpreter.go25
1 files changed, 8 insertions, 17 deletions
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go
index 417665370..989f85f5d 100644
--- a/core/vm/interpreter.go
+++ b/core/vm/interpreter.go
@@ -28,24 +28,15 @@ import (
// Config are the configuration options for the Interpreter
type Config struct {
- // Debug enabled debugging Interpreter options
- Debug bool
- // Tracer is the op code logger
- Tracer Tracer
- // NoRecursion disabled Interpreter call, callcode,
- // delegate call and create.
- NoRecursion bool
- // Enable recording of SHA3/keccak preimages
- EnablePreimageRecording bool
- // JumpTable contains the EVM instruction table. This
- // may be left uninitialised and will be set to the default
- // table.
- JumpTable [256]operation
+ Debug bool // Enables debugging
+ Tracer Tracer // Opcode logger
+ NoRecursion bool // Disables call, callcode, delegate call and create
+ EnablePreimageRecording bool // Enables recording of SHA3/keccak preimages
- // Type of the EWASM interpreter
- EWASMInterpreter string
- // Type of the EVM interpreter
- EVMInterpreter string
+ JumpTable [256]operation // EVM instruction table, automatically populated if unset
+
+ EWASMInterpreter string // External EWASM interpreter options
+ EVMInterpreter string // External EVM interpreter options
}
// Interpreter is used to run Ethereum based contracts and will utilise the