From 92bd4de5cf53270cddc4c52c5809bcbd00ff7af3 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 1 Jul 2025 13:50:04 +0800 Subject: [PATCH] cmd/utils: enable file journal in MakeChain --- cmd/utils/flags.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index ed594e40bd..34641639b6 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -2198,6 +2198,12 @@ func MakeChain(ctx *cli.Context, stack *node.Node, readonly bool) (*core.BlockCh StateHistory: ctx.Uint64(StateHistoryFlag.Name), // Disable transaction indexing/unindexing. TxLookupLimit: -1, + + // Enables file journaling for the trie database. The journal files will be stored + // within the data directory. The corresponding paths will be either: + // - DATADIR/triedb/merkle.journal + // - DATADIR/triedb/verkle.journal + TrieJournalDirectory: stack.ResolvePath("triedb"), } if options.ArchiveMode && !options.Preimages { options.Preimages = true