From b1b56233fb54ee759fb6a9fa032d07d7de112ee3 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Sat, 19 Oct 2024 09:29:48 +0100 Subject: [PATCH] fix: return `el_offline` as `true` in syncing status response if auth failed (#7175) --- packages/beacon-node/src/sync/sync.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/beacon-node/src/sync/sync.ts b/packages/beacon-node/src/sync/sync.ts index 1e03431adbbb..94eea73e1ef8 100644 --- a/packages/beacon-node/src/sync/sync.ts +++ b/packages/beacon-node/src/sync/sync.ts @@ -88,7 +88,9 @@ export class BeaconSync implements IBeaconSync { getSyncStatus(): SyncingStatus { const currentSlot = this.chain.clock.currentSlot; - const elOffline = this.chain.executionEngine.state === ExecutionEngineState.OFFLINE; + const elOffline = + this.chain.executionEngine.state === ExecutionEngineState.OFFLINE || + this.chain.executionEngine.state === ExecutionEngineState.AUTH_FAILED; // If we are pre/at genesis, signal ready if (currentSlot <= GENESIS_SLOT) {