mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
This commit is contained in:
parent
4c098ddf1f
commit
fac866138b
1 changed files with 3 additions and 2 deletions
|
|
@ -1509,8 +1509,9 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
|||
}
|
||||
cfg.NoPruning = ctx.String(GCModeFlag.Name) == "archive"
|
||||
cfg.Prefetch = ctx.Bool(CachePrefetchFlag.Name)
|
||||
// Read the value from the flag no matter if it's set or not.
|
||||
cfg.Preimages = ctx.Bool(CachePreimagesFlag.Name)
|
||||
if ctx.IsSet(CachePreimagesFlag.Name) {
|
||||
cfg.Preimages = ctx.Bool(CachePreimagesFlag.Name)
|
||||
}
|
||||
if cfg.NoPruning && !cfg.Preimages {
|
||||
cfg.Preimages = true
|
||||
log.Info("Enabling recording of key preimages since archive mode is used")
|
||||
|
|
|
|||
Loading…
Reference in a new issue