From 45cc127bb4e5bd24a65792a5eee23ee9005605e2 Mon Sep 17 00:00:00 2001 From: Dimo99 Date: Tue, 23 Jul 2024 17:06:03 +0300 Subject: [PATCH] fix(relay): Getting sync aggregate non existing bug --- relay/implementations/beacon-api.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/relay/implementations/beacon-api.ts b/relay/implementations/beacon-api.ts index f0be9b250..1ee3e4bb2 100644 --- a/relay/implementations/beacon-api.ts +++ b/relay/implementations/beacon-api.ts @@ -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) {