diff --git a/indexer/client.go b/indexer/client.go index ccec612a..5e19ecd7 100644 --- a/indexer/client.go +++ b/indexer/client.go @@ -364,7 +364,7 @@ func (client *IndexerClient) ensureParentBlocks(currentBlock *CacheBlock) error logger.WithField("client", client.clientName).Debugf("received known block %v:%v [0x%x] backfill", utils.EpochOfSlot(parentSlot), parentSlot, parentRoot) } client.ensureBlock(parentBlock, parentHead) - if int64(utils.EpochOfSlot(parentSlot)) <= client.lastFinalizedEpoch { + if int64(utils.EpochOfSlot(parentSlot)) <= client.indexerCache.finalizedEpoch { logger.WithField("client", client.clientName).Debugf("backfill cache: reached finalized slot %v:%v [0x%x]", utils.EpochOfSlot(parentSlot), parentSlot, parentRoot) break }