Skip to content

Commit

Permalink
fix: fix breaking builder block production (#5928)
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech authored and wemeetagain committed Sep 2, 2023
1 parent 11af9df commit daa811d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,14 @@ export async function produceBlockBody<T extends BlockType>(
(blockBody as capella.BeaconBlockBody).blsToExecutionChanges = blsToExecutionChanges;
Object.assign(logMeta, {
blsToExecutionChanges: blsToExecutionChanges.length,
withdrawals: (blockBody as capella.BeaconBlockBody).executionPayload.withdrawals.length,
});

// withdrawals are only available in full body
if (blockType === BlockType.Full) {
Object.assign(logMeta, {
withdrawals: (blockBody as capella.BeaconBlockBody).executionPayload.withdrawals.length,
});
}
}

Object.assign(logMeta, {blockValue});
Expand Down

0 comments on commit daa811d

Please sign in to comment.