Skip to content

Commit

Permalink
Add execution status to notifier on/post bellatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Aug 5, 2022
1 parent b34abb7 commit 8f5ccea
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/beacon-node/src/node/notifier.ts
Expand Up @@ -157,10 +157,15 @@ function getExecutionInfo(
} else {
const executionStatusStr = headInfo.executionStatus.toLowerCase();

if (isBellatrixCachedStateType(headState) && isMergeTransitionComplete(headState)) {
return [`execution: ${executionStatusStr}(${prettyBytes(headInfo.executionPayloadBlockHash ?? "empty")})`];
// Add execution status to notifier only if head is on/post bellatrix
if (isBellatrixCachedStateType(headState)) {
if (isMergeTransitionComplete(headState)) {
return [`execution: ${executionStatusStr}(${prettyBytes(headInfo.executionPayloadBlockHash ?? "empty")})`];
} else {
return [`execution: ${executionStatusStr}`];
}
} else {
return [`execution: ${executionStatusStr}`];
return [];
}
}
}

0 comments on commit 8f5ccea

Please sign in to comment.