Skip to content

Commit 21b035e

Browse files
authored
cmd/geth: set trie,gc and other cache flags for import chain (#31577)
Signed-off-by: jsvisa <[email protected]>
1 parent 77dc1ac commit 21b035e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/geth/chaincmd.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,15 @@ if one is set. Otherwise it prints the genesis from the datadir.`,
7979
Usage: "Import a blockchain file",
8080
ArgsUsage: "<filename> (<filename 2> ... <filename N>) ",
8181
Flags: slices.Concat([]cli.Flag{
82-
utils.CacheFlag,
8382
utils.GCModeFlag,
8483
utils.SnapshotFlag,
84+
utils.CacheFlag,
8585
utils.CacheDatabaseFlag,
86+
utils.CacheTrieFlag,
8687
utils.CacheGCFlag,
88+
utils.CacheSnapshotFlag,
89+
utils.CacheNoPrefetchFlag,
90+
utils.CachePreimagesFlag,
8791
utils.NoCompactionFlag,
8892
utils.MetricsEnabledFlag,
8993
utils.MetricsEnabledExpensiveFlag,

0 commit comments

Comments
 (0)