Skip to content

Commit

Permalink
fix(relay): Getting sync aggregate non existing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimo99 authored and kkirkov committed Jul 31, 2024
1 parent eb3e3d9 commit e1abe3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion relay/implementations/beacon-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ export class BeaconApi implements IBeaconApi {
): Promise<{ sync_aggregate: SyncAggregate; slot: number }> {
while (slot <= limitSlot) {
const blockHeaderBodyResult = await (
await this.fetchWithFallback(`/eth/v2/beacon/blocks/${slot}`)
await this.fetchWithFallbackNoRetryNotFound(
`/eth/v2/beacon/blocks/${slot}`,
)
).json();

if (blockHeaderBodyResult.code !== 404) {
Expand Down

0 comments on commit e1abe3a

Please sign in to comment.