diff --git a/cmd/node/config/prefs.toml b/cmd/node/config/prefs.toml index d24ce017010..ebc062e51fd 100644 --- a/cmd/node/config/prefs.toml +++ b/cmd/node/config/prefs.toml @@ -71,7 +71,7 @@ CutoffTrigger = "round" # The minimum value of the cutoff. For example, if CutoffType is set to "round", and Value to 20, then the node will stop processing at round 20+ - Value = 0 + Value = 29903151 # NamedIdentity represents an identity that runs nodes on the multikey # There can be multiple identities set on the same node, each one of them having different bls keys, just by duplicating the NamedIdentity diff --git a/process/sync/storageBootstrap/baseStorageBootstrapper.go b/process/sync/storageBootstrap/baseStorageBootstrapper.go index 41149101a46..ab37fad5686 100644 --- a/process/sync/storageBootstrap/baseStorageBootstrapper.go +++ b/process/sync/storageBootstrap/baseStorageBootstrapper.go @@ -128,13 +128,15 @@ func (st *storageBootstrapper) loadBlocks() error { break } - storageHeadersInfo = append(storageHeadersInfo, headerInfo) - if uint64(round) > st.bootstrapRoundIndex { + st.cleanupStorage(headerInfo.LastHeader) + st.bootstrapper.cleanupNotarizedStorage(headerInfo.LastHeader.Hash) round = headerInfo.LastRound continue } + storageHeadersInfo = append(storageHeadersInfo, headerInfo) + _, numHdrs := metricsLoader.UpdateMetricsFromStorage(st.store, st.uint64Converter, st.marshalizer, st.appStatusHandler, headerInfo.LastHeader.Nonce) st.blkExecutor.SetNumProcessedObj(numHdrs)