Skip to content

Commit

Permalink
properly run orphaned block processing
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 23, 2023
1 parent a2e66c8 commit dfc1c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/cacheLogic.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (cache *indexerCache) runCacheLogic() error {
}
}

if cache.lowestSlot >= 0 && int64(utils.EpochOfSlot(uint64(cache.lowestSlot))) < cache.processedEpoch {
if cache.lowestSlot >= 0 && int64(utils.EpochOfSlot(uint64(cache.lowestSlot))) <= cache.processedEpoch {
// process cached blocks in already processed epochs (duplicates or new orphaned blocks)
err := cache.processOrphanedBlocks(cache.processedEpoch)
if err != nil {
Expand Down

0 comments on commit dfc1c56

Please sign in to comment.