Skip to content

Commit

Permalink
Recompute aggregated proof for blobs bundle (ethereum#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Inphi authored Aug 3, 2022
1 parent c5a0bd9 commit c229ee8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/beacon/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit c229ee8

Please sign in to comment.