Comment out code that fails to compile

This commit is contained in:
Jimmy Chen 2023-03-15 12:30:59 +11:00
parent e4608d44ea
commit 62627d984c
No known key found for this signature in database
GPG Key ID: 7AAEE02659DCF690

View File

@ -135,17 +135,20 @@ fn verify_data_availability<T: BeaconChainTypes>(
.as_ref()
.ok_or(BlobError::TrustedSetupNotInitialized)?;
if !kzg_utils::validate_blobs_sidecar(
kzg,
block_slot,
block_root,
kzg_commitments,
blob_sidecar,
)
.map_err(BlobError::KzgError)?
{
return Err(BlobError::InvalidKzgProof);
}
// TODO: use `kzg_utils::validate_blobs` once the function is updated
// I believe this is currently being worked on in another branch.
//
// if !kzg_utils::validate_blobs_sidecar(
// kzg,
// block_slot,
// block_root,
// kzg_commitments,
// blob_sidecar,
// )
// .map_err(BlobError::KzgError)?
// {
// return Err(BlobError::InvalidKzgProof);
// }
Ok(())
}