Skip to content

Commit

Permalink
fix(relay): Bug when finalized slot is in previous period
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimo99 committed Dec 10, 2024
1 parent afe7373 commit 9cb7870
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion relay/utils/orchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ export async function addUpdate(
}
}

const finalizedSlot = (
await beaconApi.getFinalizedBlockHeader(optimisticSlot)
).slot;

const nextSlot = await getNextSlot(
optimisticSlot,
finalizedSlot,
slotsJump,
headSlot,
beaconApi,
Expand Down

0 comments on commit 9cb7870

Please sign in to comment.