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 Nov 8, 2024
1 parent afe7373 commit 06eb18b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion relay/utils/orchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ 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 06eb18b

Please sign in to comment.