Skip to content

Commit

Permalink
fix: respect first block in count
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Aug 6, 2024
1 parent 17086b7 commit 8810c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 8810c54

Please sign in to comment.