Skip to content

Commit

Permalink
Merge 8f5ccea into b34abb7
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Aug 5, 2022
2 parents b34abb7 + 8f5ccea commit bf6f24f
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 bf6f24f

Please sign in to comment.