You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.Info("State in memory for too long, committing", "time", bc.gcproc, "allowance", bc.cacheConfig.TrieTimeLimit, "optimum", float64(chosen-bc.lastWrite)/TriesInMemory)
log.Info("State in memory for too long, committing", "time", bc.gcproc, "allowance", flushInterval, "optimum", float64(chosen-bc.lastWrite)/TriesInMemory)
1346
1349
}
1347
1350
// Flush an entire trie and restart the counters
1348
1351
bc.triedb.Commit(header.Root, true, nil)
@@ -2437,3 +2440,9 @@ func (bc *BlockChain) SetBlockValidatorAndProcessorForTesting(v Validator, p Pro
2437
2440
bc.validator=v
2438
2441
bc.processor=p
2439
2442
}
2443
+
2444
+
// SetTrieFlushInterval configures how often in-memory tries are persisted to disk.
2445
+
// It is thread-safe and can be called repeatedly without side effects.
0 commit comments