From 3fbbc1610e031c298f782186892b8296fcf06583 Mon Sep 17 00:00:00 2001 From: gajinder Date: Tue, 8 Aug 2023 17:23:04 +0530 Subject: [PATCH] add more info --- .../beacon-node/src/chain/produceBlock/produceBlockBody.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/beacon-node/src/chain/produceBlock/produceBlockBody.ts b/packages/beacon-node/src/chain/produceBlock/produceBlockBody.ts index efb42f467bc6..2df0f71afa87 100644 --- a/packages/beacon-node/src/chain/produceBlock/produceBlockBody.ts +++ b/packages/beacon-node/src/chain/produceBlock/produceBlockBody.ts @@ -250,6 +250,7 @@ export async function produceBlockBody( const {executionPayload, blobsBundle} = engineRes; (blockBody as allForks.ExecutionBlockBody).executionPayload = executionPayload; blockValue = engineRes.blockValue; + Object.assign(logMeta, {transactions: executionPayload.transactions.length}); const fetchedTime = Date.now() / 1000 - computeTimeAtSlot(this.config, blockSlot, this.genesisTime); this.metrics?.blockPayload.payloadFetchedTime.observe({prepType}, fetchedTime); @@ -326,7 +327,7 @@ export async function produceBlockBody( if (ForkSeq[fork] >= ForkSeq.capella) { // TODO: blsToExecutionChanges should be passed in the produceBlock call (blockBody as capella.BeaconBlockBody).blsToExecutionChanges = blsToExecutionChanges; - Object.assign({ + Object.assign(logMeta, { blsToExecutionChanges: blsToExecutionChanges.length, withdrawals: (blockBody as capella.BeaconBlockBody).executionPayload.withdrawals.length, });