From c229ee8cca76373a8fb7a05869b10cca3fdbe875 Mon Sep 17 00:00:00 2001 From: Inphi Date: Wed, 3 Aug 2022 10:33:57 -0400 Subject: [PATCH] Recompute aggregated proof for blobs bundle (#11) --- core/beacon/types.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/beacon/types.go b/core/beacon/types.go index 026a24a37c8a..9b8e11f46bf1 100644 --- a/core/beacon/types.go +++ b/core/beacon/types.go @@ -226,8 +226,13 @@ func BlockToBlobData(block *types.Block) (*BlobsBundleV1, error) { } blobsBundle.Blobs = append(blobsBundle.Blobs, blobs...) blobsBundle.KZGs = append(blobsBundle.KZGs, kzgs...) - blobsBundle.AggregatedProof = aggProof } } + + _, _, aggregatedProof, err := types.Blobs(blobsBundle.Blobs).ComputeCommitmentsAndAggregatedProof() + if err != nil { + return nil, err + } + blobsBundle.AggregatedProof = aggregatedProof return blobsBundle, nil }