Skip to content

Commit

Permalink
fix: do not fetch blocks before genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Aug 6, 2024
1 parent 8f2306f commit 17086b7
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 @@ -405,7 +405,7 @@ func (a *AppManager) PopulateBlocks() {
return
}

missingBlocks := a.StateManager.GetMissingBlocksSinceLatest(a.Config.StoreBlocks)
missingBlocks := a.StateManager.GetMissingBlocksSinceLatest(a.Config.StoreBlocks - a.Config.FirstBlock)
if len(missingBlocks) == 0 {
a.Logger.Info().
Int64("count", a.Config.StoreBlocks).
Expand Down

0 comments on commit 17086b7

Please sign in to comment.