Skip to content

Commit

Permalink
feat: add error log to notifier if execution client auth failed (#7239)
Browse files Browse the repository at this point in the history
* feat: add error log to notifier if execution client auth failed

* Update packages/beacon-node/src/node/notifier.ts

---------

Co-authored-by: NC <17676176+ensi321@users.noreply.github.com>
  • Loading branch information
nflaig and ensi321 authored Dec 2, 2024
1 parent 8922d55 commit 64eb015
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/beacon-node/src/node/notifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ export async function runNodeNotifier(modules: NodeNotifierModules): Promise<voi
const clockSlot = chain.clock.currentSlot;
const clockEpoch = computeEpochAtSlot(clockSlot);

if (
clockEpoch >= config.BELLATRIX_FORK_EPOCH &&
computeStartSlotAtEpoch(clockEpoch) === clockSlot &&
chain.executionEngine.state === ExecutionEngineState.OFFLINE
) {
logger.warn("Execution client is offline");
if (clockEpoch >= config.BELLATRIX_FORK_EPOCH && computeStartSlotAtEpoch(clockEpoch) === clockSlot) {
if (chain.executionEngine.state === ExecutionEngineState.OFFLINE) {
logger.warn("Execution client is offline");
} else if (chain.executionEngine.state === ExecutionEngineState.AUTH_FAILED) {
logger.error("Execution client authentication failed. Verify if the JWT secret matches on both clients");
}
}

const headInfo = chain.forkChoice.getHead();
Expand Down

0 comments on commit 64eb015

Please sign in to comment.