From 6f9d8dbb555197bf656ae18da8fc6740eba1fd0c Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Thu, 17 Oct 2024 18:35:01 +0100 Subject: [PATCH] fix: consider execution client as offline if auth failed --- 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) {