Skip to content

Commit

Permalink
fixed issue with block backfilling for far behind clients
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 23, 2023
1 parent ae550a8 commit ede58ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ede58ad

Please sign in to comment.