Skip to content

Commit

Permalink
populate exec block cache when restoring blocks from db during startup
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 10, 2024
1 parent 973f366 commit 17b4b5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions indexer/beacon/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ func (indexer *Indexer) StartIndexer() {
block.isInFinalizedDb = true
}

indexer.blockCache.addBlockToExecBlockMap(block)

blockFork := indexer.forkCache.getForkById(block.forkId)
if blockFork != nil {
if blockFork.headBlock == nil || blockFork.headBlock.Slot < block.Slot {
Expand Down

0 comments on commit 17b4b5d

Please sign in to comment.