Skip to content

Commit

Permalink
add more info
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Aug 8, 2023
1 parent 3208300 commit 3fbbc16
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ export async function produceBlockBody<T extends BlockType>(
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);
Expand Down Expand Up @@ -326,7 +327,7 @@ export async function produceBlockBody<T extends BlockType>(
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,
});
Expand Down

0 comments on commit 3fbbc16

Please sign in to comment.