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