mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
removed --cache.trie.journal and --cache.trie.rejournal wrt geth v1.12.2 merge
This commit is contained in:
parent
ae99b47a7c
commit
6aed36d9d1
13 changed files with 0 additions and 45 deletions
|
|
@ -150,8 +150,6 @@ syncmode = "full"
|
|||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
|
|
@ -155,8 +155,6 @@ devfakeauthor = false # Run miner without validator set authorization
|
|||
snapshot = 10 # Percentage of cache memory allowance to use for snapshot caching (default = 10% full mode, 20% archive mode)
|
||||
database = 50 # Percentage of cache memory allowance to use for database io
|
||||
trie = 15 # Percentage of cache memory allowance to use for trie caching (default = 15% full mode, 30% archive mode)
|
||||
journal = "triecache" # Disk journal directory for trie cache to survive node restarts
|
||||
rejournal = "1h0m0s" # Time interval to regenerate the trie cache journal
|
||||
noprefetch = false # Disable heuristic state prefetch during block import (less CPU and disk IO, more time waiting for data)
|
||||
preimages = false # Enable recording the SHA3/keccak preimages of trie keys
|
||||
txlookuplimit = 2350000 # Number of recent blocks to maintain transactions index for (default = about 56 days, 0 = entire chain)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ func (c *DumpconfigCommand) Run(args []string) int {
|
|||
userConfig.Sealer.RecommitRaw = userConfig.Sealer.Recommit.String()
|
||||
userConfig.Gpo.MaxPriceRaw = userConfig.Gpo.MaxPrice.String()
|
||||
userConfig.Gpo.IgnorePriceRaw = userConfig.Gpo.IgnorePrice.String()
|
||||
userConfig.Cache.RejournalRaw = userConfig.Cache.Rejournal.String()
|
||||
userConfig.Cache.TrieTimeoutRaw = userConfig.Cache.TrieTimeout.String()
|
||||
userConfig.P2P.TxArrivalWaitRaw = userConfig.P2P.TxArrivalWait.String()
|
||||
|
||||
|
|
|
|||
|
|
@ -526,13 +526,6 @@ type CacheConfig struct {
|
|||
// PercTrie is percentage of cache used for the trie
|
||||
PercTrie uint64 `hcl:"trie,optional" toml:"trie,optional"`
|
||||
|
||||
// Journal is the disk journal directory for trie cache to survive node restarts
|
||||
Journal string `hcl:"journal,optional" toml:"journal,optional"`
|
||||
|
||||
// Rejournal is the time interval to regenerate the journal for clean cache
|
||||
Rejournal time.Duration `hcl:"-,optional" toml:"-"`
|
||||
RejournalRaw string `hcl:"rejournal,optional" toml:"rejournal,optional"`
|
||||
|
||||
// NoPrefetch is used to disable prefetch of tries
|
||||
NoPrefetch bool `hcl:"noprefetch,optional" toml:"noprefetch,optional"`
|
||||
|
||||
|
|
@ -742,8 +735,6 @@ func DefaultConfig() *Config {
|
|||
PercTrie: 15,
|
||||
PercGc: 25,
|
||||
PercSnapshot: 10,
|
||||
Journal: "triecache",
|
||||
Rejournal: 60 * time.Minute,
|
||||
NoPrefetch: false,
|
||||
Preimages: false,
|
||||
TxLookupLimit: 2350000,
|
||||
|
|
@ -840,7 +831,6 @@ func (c *Config) fillTimeDurations() error {
|
|||
{"jsonrpc.http.ep-requesttimeout", &c.JsonRPC.Http.ExecutionPoolRequestTimeout, &c.JsonRPC.Http.ExecutionPoolRequestTimeoutRaw},
|
||||
{"txpool.lifetime", &c.TxPool.LifeTime, &c.TxPool.LifeTimeRaw},
|
||||
{"txpool.rejournal", &c.TxPool.Rejournal, &c.TxPool.RejournalRaw},
|
||||
{"cache.rejournal", &c.Cache.Rejournal, &c.Cache.RejournalRaw},
|
||||
{"cache.timeout", &c.Cache.TrieTimeout, &c.Cache.TrieTimeoutRaw},
|
||||
{"p2p.txarrivalwait", &c.P2P.TxArrivalWait, &c.P2P.TxArrivalWaitRaw},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -389,20 +389,6 @@ func (c *Command) Flags(config *Config) *flagset.Flagset {
|
|||
Default: c.cliConfig.Cache.PercTrie,
|
||||
Group: "Cache",
|
||||
})
|
||||
f.StringFlag(&flagset.StringFlag{
|
||||
Name: "cache.trie.journal",
|
||||
Usage: "Disk journal directory for trie cache to survive node restarts",
|
||||
Value: &c.cliConfig.Cache.Journal,
|
||||
Default: c.cliConfig.Cache.Journal,
|
||||
Group: "Cache",
|
||||
})
|
||||
f.DurationFlag(&flagset.DurationFlag{
|
||||
Name: "cache.trie.rejournal",
|
||||
Usage: "Time interval to regenerate the trie cache journal",
|
||||
Value: &c.cliConfig.Cache.Rejournal,
|
||||
Default: c.cliConfig.Cache.Rejournal,
|
||||
Group: "Cache",
|
||||
})
|
||||
f.Uint64Flag(&flagset.Uint64Flag{
|
||||
Name: "cache.gc",
|
||||
Usage: "Percentage of cache memory allowance to use for trie pruning",
|
||||
|
|
|
|||
|
|
@ -144,8 +144,6 @@ gcmode = "archive"
|
|||
snapshot = 20
|
||||
# database = 50
|
||||
trie = 30
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
|
|
@ -144,8 +144,6 @@ syncmode = "full"
|
|||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
|
|
@ -146,8 +146,6 @@ syncmode = "full"
|
|||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
|
|
@ -146,8 +146,6 @@ syncmode = "full"
|
|||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
|
|
@ -144,8 +144,6 @@ gcmode = "archive"
|
|||
snapshot = 20
|
||||
# database = 50
|
||||
trie = 30
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
|
|
@ -144,8 +144,6 @@ syncmode = "full"
|
|||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
|
|
@ -146,8 +146,6 @@ syncmode = "full"
|
|||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
|
|
@ -146,8 +146,6 @@ syncmode = "full"
|
|||
# snapshot = 10
|
||||
# database = 50
|
||||
# trie = 15
|
||||
# journal = "triecache"
|
||||
# rejournal = "1h0m0s"
|
||||
# noprefetch = false
|
||||
# preimages = false
|
||||
# txlookuplimit = 2350000
|
||||
|
|
|
|||
Loading…
Reference in a new issue