Skip to content

Commit b448f7f

Browse files
authored
cmd/utils: set journalfile default to true (bnb-chain#3361)
1 parent e414b34 commit b448f7f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cmd/utils/flags.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ var (
369369
}
370370
JournalFileFlag = &cli.BoolFlag{
371371
Name: "journalfile",
372-
Usage: "Enable using journal file to store the TrieJournal instead of KVDB in pbss (default = false)",
373-
Value: false,
372+
Usage: "Enable using journal file to store the TrieJournal instead of KVDB in pbss (default = true)",
373+
Value: true,
374374
Category: flags.StateCategory,
375375
}
376376
StateHistoryFlag = &cli.Uint64Flag{
@@ -2078,9 +2078,8 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
20782078
if ctx.IsSet(PathDBSyncFlag.Name) {
20792079
cfg.PathSyncFlush = true
20802080
}
2081-
if ctx.IsSet(JournalFileFlag.Name) {
2082-
cfg.JournalFileEnabled = true
2083-
}
2081+
2082+
cfg.JournalFileEnabled = ctx.Bool(JournalFileFlag.Name)
20842083

20852084
if ctx.String(GCModeFlag.Name) == "archive" {
20862085
if cfg.TransactionHistory != 0 {

0 commit comments

Comments
 (0)