mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 09:51:36 +00:00
allow geth --evm.experimental
This commit is contained in:
parent
a30cb22324
commit
1a55bd8a98
4 changed files with 14 additions and 0 deletions
|
|
@ -136,6 +136,7 @@ var (
|
|||
utils.DeveloperGasLimitFlag,
|
||||
utils.DeveloperPeriodFlag,
|
||||
utils.VMEnableDebugFlag,
|
||||
utils.VMEnableExperimentalInterpFlag,
|
||||
utils.VMTraceFlag,
|
||||
utils.VMTraceJsonConfigFlag,
|
||||
utils.VMWitnessStatsFlag,
|
||||
|
|
|
|||
|
|
@ -598,6 +598,12 @@ var (
|
|||
Usage: "Record information useful for VM and contract debugging",
|
||||
Category: flags.VMCategory,
|
||||
}
|
||||
VMEnableExperimentalInterpFlag = &cli.BoolFlag{
|
||||
Name: "evm.experimental",
|
||||
Usage: "Enable the experimental EVM interpreter. This flag may be removed or changed without notice.",
|
||||
Category: flags.VMCategory,
|
||||
Hidden: true,
|
||||
}
|
||||
VMTraceFlag = &cli.StringFlag{
|
||||
Name: "vmtrace",
|
||||
Usage: "Name of tracer which should record internal VM operations (costly)",
|
||||
|
|
@ -1892,6 +1898,9 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
|||
if ctx.IsSet(VMEnableDebugFlag.Name) {
|
||||
cfg.EnablePreimageRecording = ctx.Bool(VMEnableDebugFlag.Name)
|
||||
}
|
||||
if ctx.IsSet(VMEnableExperimentalInterpFlag.Name) {
|
||||
cfg.EnableExperimentalInterpreter = ctx.Bool(VMEnableExperimentalInterpFlag.Name)
|
||||
}
|
||||
if ctx.IsSet(VMWitnessStatsFlag.Name) {
|
||||
cfg.EnableWitnessStats = ctx.Bool(VMWitnessStatsFlag.Name)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -242,6 +242,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
|
|||
TxLookupLimit: int64(min(config.TransactionHistory, math.MaxInt64)),
|
||||
VmConfig: vm.Config{
|
||||
EnablePreimageRecording: config.EnablePreimageRecording,
|
||||
EnableExperimentalInterpreter: config.EnableExperimentalInterpreter,
|
||||
},
|
||||
// Enables file journaling for the trie database. The journal files will be stored
|
||||
// within the data directory. The corresponding paths will be either:
|
||||
|
|
|
|||
|
|
@ -168,6 +168,9 @@ type Config struct {
|
|||
// Enables tracking of SHA3 preimages in the VM
|
||||
EnablePreimageRecording bool
|
||||
|
||||
// Enables the experimental EVM interpreter
|
||||
EnableExperimentalInterpreter bool
|
||||
|
||||
// Enables collection of witness trie access statistics
|
||||
EnableWitnessStats bool
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue