mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
cmd: no-legacy cache.trie.journal
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
9db6f07d90
commit
bc358d5202
3 changed files with 7 additions and 8 deletions
|
|
@ -97,7 +97,7 @@ var (
|
||||||
utils.CacheFlag,
|
utils.CacheFlag,
|
||||||
utils.CacheDatabaseFlag,
|
utils.CacheDatabaseFlag,
|
||||||
utils.CacheTrieFlag,
|
utils.CacheTrieFlag,
|
||||||
utils.CacheTrieJournalFlag, // deprecated
|
utils.CacheTrieJournalFlag,
|
||||||
utils.CacheTrieRejournalFlag, // deprecated
|
utils.CacheTrieRejournalFlag, // deprecated
|
||||||
utils.CacheGCFlag,
|
utils.CacheGCFlag,
|
||||||
utils.CacheSnapshotFlag,
|
utils.CacheSnapshotFlag,
|
||||||
|
|
|
||||||
|
|
@ -465,6 +465,12 @@ var (
|
||||||
Value: 15,
|
Value: 15,
|
||||||
Category: flags.PerfCategory,
|
Category: flags.PerfCategory,
|
||||||
}
|
}
|
||||||
|
CacheTrieJournalFlag = &cli.StringFlag{
|
||||||
|
Name: "cache.trie.journal",
|
||||||
|
Usage: "Disk journal directory for trie cache to survive node restarts",
|
||||||
|
Value: "trie-journal.rlp",
|
||||||
|
Category: flags.PerfCategory,
|
||||||
|
}
|
||||||
CacheGCFlag = &cli.IntFlag{
|
CacheGCFlag = &cli.IntFlag{
|
||||||
Name: "cache.gc",
|
Name: "cache.gc",
|
||||||
Usage: "Percentage of cache memory allowance to use for trie pruning (default = 25% full mode, 0% archive mode)",
|
Usage: "Percentage of cache memory allowance to use for trie pruning (default = 25% full mode, 0% archive mode)",
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ var ShowDeprecated = &cli.Command{
|
||||||
var DeprecatedFlags = []cli.Flag{
|
var DeprecatedFlags = []cli.Flag{
|
||||||
NoUSBFlag,
|
NoUSBFlag,
|
||||||
LegacyWhitelistFlag,
|
LegacyWhitelistFlag,
|
||||||
CacheTrieJournalFlag,
|
|
||||||
CacheTrieRejournalFlag,
|
CacheTrieRejournalFlag,
|
||||||
LegacyDiscoveryV5Flag,
|
LegacyDiscoveryV5Flag,
|
||||||
TxLookupLimitFlag,
|
TxLookupLimitFlag,
|
||||||
|
|
@ -60,12 +59,6 @@ var (
|
||||||
Category: flags.DeprecatedCategory,
|
Category: flags.DeprecatedCategory,
|
||||||
}
|
}
|
||||||
// Deprecated July 2023
|
// Deprecated July 2023
|
||||||
CacheTrieJournalFlag = &cli.StringFlag{
|
|
||||||
Name: "cache.trie.journal",
|
|
||||||
Usage: "Disk journal directory for trie cache to survive node restarts",
|
|
||||||
Value: "trie-disklayer.rlp",
|
|
||||||
Category: flags.DeprecatedCategory,
|
|
||||||
}
|
|
||||||
CacheTrieRejournalFlag = &cli.DurationFlag{
|
CacheTrieRejournalFlag = &cli.DurationFlag{
|
||||||
Name: "cache.trie.rejournal",
|
Name: "cache.trie.rejournal",
|
||||||
Usage: "Time interval to regenerate the trie cache journal",
|
Usage: "Time interval to regenerate the trie cache journal",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue