Skip to content

Commit

Permalink
chore: log newPayload engine api (#6810)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths authored May 24, 2024
1 parent 6c20dc2 commit 3471475
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,16 @@ export async function verifyBlockExecutionPayload(
? (block.message.body as deneb.BeaconBlockBody).blobKzgCommitments.map(kzgCommitmentToVersionedHash)
: undefined;
const parentBlockRoot = ForkSeq[fork] >= ForkSeq.deneb ? block.message.parentRoot : undefined;

const logCtx = {slot: block.message.slot, executionBlock: executionPayloadEnabled.blockNumber};
chain.logger.debug("Call engine api newPayload", logCtx);
const execResult = await chain.executionEngine.notifyNewPayload(
fork,
executionPayloadEnabled,
versionedHashes,
parentBlockRoot
);
chain.logger.debug("Receive engine api newPayload result", {...logCtx, status: execResult.status});

chain.metrics?.engineNotifyNewPayloadResult.inc({result: execResult.status});

Expand Down

0 comments on commit 3471475

Please sign in to comment.