From b0839d1ae57d16b158fc2c970b16795f60086163 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Mon, 4 Dec 2023 17:36:50 +0100 Subject: [PATCH] use correct KZG commitments in Deneb `constructPlainBlindedBlock` (#5642) For Deneb, extend on #5639 and use correct KZG commitments when producing new blinded blocks using Nimbus VC. --- beacon_chain/validators/beacon_validators.nim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/beacon_chain/validators/beacon_validators.nim b/beacon_chain/validators/beacon_validators.nim index 8f048185e..0b6259299 100644 --- a/beacon_chain/validators/beacon_validators.nim +++ b/beacon_chain/validators/beacon_validators.nim @@ -682,7 +682,7 @@ func constructPlainBlindedBlock[T: capella_mev.BlindedBeaconBlock]( func constructPlainBlindedBlock[T: deneb_mev.BlindedBeaconBlock]( blck: ForkyBeaconBlock, - executionPayloadHeader: deneb_mev.BlindedExecutionPayloadAndBlobsBundle): T = + blindedBundle: deneb_mev.BlindedExecutionPayloadAndBlobsBundle): T = # https://github.com/nim-lang/Nim/issues/23020 workaround static: doAssert T is deneb_mev.BlindedBeaconBlock @@ -695,7 +695,12 @@ func constructPlainBlindedBlock[T: deneb_mev.BlindedBeaconBlock]( # https://github.com/ethereum/builder-specs/blob/v0.3.0/specs/bellatrix/validator.md#block-proposal copyFields(blindedBlock, blck, blckFields) copyFields(blindedBlock.body, blck.body, blckBodyFields) - assign(blindedBlock.body.execution_payload_header, executionPayloadHeader.execution_payload_header) + assign( + blindedBlock.body.execution_payload_header, + blindedBundle.execution_payload_header) + assign( + blindedBlock.body.blob_kzg_commitments, + blindedBundle.blob_kzg_commitments) blindedBlock