Skip to content

Commit

Permalink
fix: return el_offline as true in syncing status response if auth…
Browse files Browse the repository at this point in the history
… failed (#7175)
  • Loading branch information
nflaig authored Oct 19, 2024
1 parent b082410 commit b1b5623
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/beacon-node/src/sync/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b1b5623

Please sign in to comment.