Skip to content

Commit 9ae6d11

Browse files
committed
fix(relay): Bug when finalized slot is in previous period
1 parent afe7373 commit 9ae6d11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

relay/utils/orchestrator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ export async function addUpdate(
2929
}
3030
}
3131

32+
const finalizedSlot = (await beaconApi.getFinalizedBlockHeader(optimisticSlot)).slot;
33+
3234
const nextSlot = await getNextSlot(
33-
optimisticSlot,
35+
finalizedSlot,
3436
slotsJump,
3537
headSlot,
3638
beaconApi,

0 commit comments

Comments
 (0)