Skip to content

Commit

Permalink
Merge pull request #160 from ethpandaops/pk910/fix-caching-duration
Browse files Browse the repository at this point in the history
fix caching duration for slots page in epoch 0
  • Loading branch information
pk910 authored Oct 25, 2024
2 parents aac28ce + 119b31f commit 30f5454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/slots.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func buildSlotsPageData(firstSlot uint64, pageSize uint64) (*models.SlotsPageDat
maxOpenFork := 0
for slotIdx := int64(firstSlot); slotIdx >= int64(lastSlot); slotIdx-- {
slot := uint64(slotIdx)
finalized := finalizedEpoch >= chainState.EpochOfSlot(phase0.Slot(slot))
finalized := finalizedEpoch > 0 && finalizedEpoch >= chainState.EpochOfSlot(phase0.Slot(slot))
if !finalized {
allFinalized = false
}
Expand Down

0 comments on commit 30f5454

Please sign in to comment.