Skip to content

Commit

Permalink
fix for orphaned block processing
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 23, 2023
1 parent 2bf136a commit e4db1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/cacheBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (cache *indexerCache) createOrGetCachedBlock(root []byte, slot uint64) (*Ca
if int64(slot) > cache.highestSlot {
cache.highestSlot = int64(slot)
}
if int64(slot) > cache.lowestSlot {
if cache.lowestSlot < 0 || int64(slot) < cache.lowestSlot {
cache.lowestSlot = int64(slot)
}
return cacheBlock, true
Expand Down

0 comments on commit e4db1ed

Please sign in to comment.