From 84750d8009eeb09ff169e0fe11fd3cda2e7f1563 Mon Sep 17 00:00:00 2001 From: radu Date: Wed, 18 Mar 2026 19:29:43 +0200 Subject: [PATCH 1/2] fixed cleanup and storage --- process/sync/storageBootstrap/baseStorageBootstrapper.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) From b5e710e14995e203eeb0dc033ab3e9b891416c16 Mon Sep 17 00:00:00 2001 From: ssd04 Date: Wed, 18 Mar 2026 21:57:08 +0200 Subject: [PATCH 2/2] cutoff at round --- cmd/node/config/prefs.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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