From 8810c541b969ad7ddaca41087cbaf68c021ee32d Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 7 Aug 2024 02:53:52 +0300 Subject: [PATCH] fix: respect first block in count --- pkg/app_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app_manager.go b/pkg/app_manager.go index a72c5b5..1533861 100644 --- a/pkg/app_manager.go +++ b/pkg/app_manager.go @@ -417,7 +417,7 @@ func (a *AppManager) PopulateBlocks() { blocksChunks := utils.SplitIntoChunks(missingBlocks, a.Config.Pagination.BlocksSearch) for _, chunk := range blocksChunks { - count := a.StateManager.GetBlocksCountSinceLatest(a.Config.StoreBlocks) + count := a.StateManager.GetBlocksCountSinceLatest(a.Config.StoreBlocks - a.Config.FirstBlock) a.Logger.Info(). Int64("count", count).