From dfc1c5647a4a22692fcdd13c22911545ee42ea11 Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 23 Aug 2023 08:25:28 +0200 Subject: [PATCH] properly run orphaned block processing --- indexer/cacheLogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer/cacheLogic.go b/indexer/cacheLogic.go index 47bc2fc9..39c73ea1 100644 --- a/indexer/cacheLogic.go +++ b/indexer/cacheLogic.go @@ -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 {