mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Convert a FullPayload to a BlindedPayload correctly (#5005)
This commit is contained in:
@@ -5167,8 +5167,11 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
.try_into()
|
||||
.map_err(|_| BlockProductionError::InvalidPayloadFork)?,
|
||||
bls_to_execution_changes: bls_to_execution_changes.into(),
|
||||
blob_kzg_commitments: kzg_commitments
|
||||
.ok_or(BlockProductionError::InvalidPayloadFork)?,
|
||||
blob_kzg_commitments: kzg_commitments.ok_or(
|
||||
BlockProductionError::MissingKzgCommitment(
|
||||
"Kzg commitments missing from block contents".to_string(),
|
||||
),
|
||||
)?,
|
||||
},
|
||||
}),
|
||||
maybe_blobs_and_proofs,
|
||||
|
||||
Reference in New Issue
Block a user