mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
cmd/utils: fix witness stats auto-enable to respect config file
This commit is contained in:
parent
ef0f1f96f9
commit
c4186b08e5
1 changed files with 1 additions and 1 deletions
|
|
@ -1899,7 +1899,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
|||
cfg.StatelessSelfValidation = ctx.Bool(VMStatelessSelfValidationFlag.Name)
|
||||
}
|
||||
// Auto-enable StatelessSelfValidation when witness stats are enabled
|
||||
if ctx.Bool(VMWitnessStatsFlag.Name) {
|
||||
if cfg.EnableWitnessStats {
|
||||
cfg.StatelessSelfValidation = true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue