Skip to content

Commit

Permalink
Remove minimum trie clean rejournal time
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald committed Oct 26, 2022
1 parent 641ea69 commit 15b98f1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,8 @@ func NewBlockChain(

// If periodic cache journal is required, spin it up.
if bc.cacheConfig.TrieCleanRejournal > 0 && len(bc.cacheConfig.TrieCleanJournal) > 0 {
if bc.cacheConfig.TrieCleanRejournal < time.Minute {
log.Warn("Sanitizing invalid trie cache journal time", "provided", bc.cacheConfig.TrieCleanRejournal, "updated", time.Minute)
bc.cacheConfig.TrieCleanRejournal = time.Minute
}
log.Info("Starting to save trie clean cache periodically", "journalDir", bc.cacheConfig.TrieCleanJournal, "freq", bc.cacheConfig.TrieCleanRejournal)

triedb := bc.stateCache.TrieDB()
bc.rejournalWg.Add(1)
go func() {
Expand Down

0 comments on commit 15b98f1

Please sign in to comment.