Skip to content

Commit 64eb015

Browse files
nflaigensi321
andauthored
feat: add error log to notifier if execution client auth failed (#7239)
* 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>
1 parent 8922d55 commit 64eb015

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ export async function runNodeNotifier(modules: NodeNotifierModules): Promise<voi
5454
const clockSlot = chain.clock.currentSlot;
5555
const clockEpoch = computeEpochAtSlot(clockSlot);
5656

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

6565
const headInfo = chain.forkChoice.getHead();

0 commit comments

Comments
 (0)