diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 7d78c7b31f..b5e1999a59 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -225,7 +225,7 @@ var ( SnapshotFlag = &cli.BoolFlag{ Name: "snapshot", Usage: `Enables snapshot-database mode (default = enable)`, - Value: true, + Value: false, Category: flags.EthCategory, } LightKDFFlag = &cli.BoolFlag{ @@ -1738,7 +1738,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) { if ctx.IsSet(CacheLogSizeFlag.Name) { cfg.FilterLogCacheSize = ctx.Int(CacheLogSizeFlag.Name) } - if !ctx.Bool(SnapshotFlag.Name) || cfg.SnapshotCache == 0 { + if ctx.Bool(SnapshotFlag.Name) || cfg.SnapshotCache == 0 { // If snap-sync is requested, this flag is also required if cfg.SyncMode == downloader.SnapSync { if !ctx.Bool(SnapshotFlag.Name) { @@ -2174,7 +2174,7 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh cache.Preimages = true log.Info("Enabling recording of key preimages since archive mode is used") } - if !ctx.Bool(SnapshotFlag.Name) { + if ctx.Bool(SnapshotFlag.Name) { cache.SnapshotLimit = 0 // Disabled } // If we're in readonly, do not bother generating snapshot data.