From 347147577b3410a5db82701517d5939c9fae516e Mon Sep 17 00:00:00 2001 From: twoeths Date: Fri, 24 May 2024 20:12:14 +0700 Subject: [PATCH] chore: log newPayload engine api (#6810) --- .../src/chain/blocks/verifyBlocksExecutionPayloads.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/beacon-node/src/chain/blocks/verifyBlocksExecutionPayloads.ts b/packages/beacon-node/src/chain/blocks/verifyBlocksExecutionPayloads.ts index 8f386ef191d2..ed3e27551b88 100644 --- a/packages/beacon-node/src/chain/blocks/verifyBlocksExecutionPayloads.ts +++ b/packages/beacon-node/src/chain/blocks/verifyBlocksExecutionPayloads.ts @@ -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});