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-lastWrite)/triesInMemory)
986
+
// If the header is missing (canonical chain behind), we're reorging a low
987
+
// diff sidechain. Suspend committing until this operation is completed.
988
+
header:=bc.GetHeaderByNumber(chosen)
989
+
ifheader==nil {
990
+
log.Warn("Reorg in progress, trie commit postponed", "number", chosen)
991
+
} else {
992
+
// If we're exceeding limits but haven't reached a large enough memory gap,
993
+
// warn the user that the system is becoming unstable.
log.Info("State in memory for too long, committing", "time", bc.gcproc, "allowance", bc.cacheConfig.TrieTimeLimit, "optimum", float64(chosen-lastWrite)/triesInMemory)
0 commit comments