Skip to content

Commit 92bd4de

Browse files
committed
cmd/utils: enable file journal in MakeChain
1 parent 42ae12b commit 92bd4de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/utils/flags.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2198,6 +2198,12 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh
21982198
StateHistory: ctx.Uint64(StateHistoryFlag.Name),
21992199
// Disable transaction indexing/unindexing.
22002200
TxLookupLimit: -1,
2201+
2202+
// Enables file journaling for the trie database. The journal files will be stored
2203+
// within the data directory. The corresponding paths will be either:
2204+
// - DATADIR/triedb/merkle.journal
2205+
// - DATADIR/triedb/verkle.journal
2206+
TrieJournalDirectory: stack.ResolvePath("triedb"),
22012207
}
22022208
if options.ArchiveMode && !options.Preimages {
22032209
options.Preimages = true

0 commit comments

Comments
 (0)