mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
Check that blobs count is correct when unblinding (#13118)
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
@@ -100,7 +100,7 @@ func (u *unblinder) unblindBuilderBlock(ctx context.Context) (interfaces.SignedB
|
||||
return nil, nil, errors.Wrap(err, "could not get transactions from payload")
|
||||
}
|
||||
|
||||
if wb.Version() >= version.Bellatrix && blobsBundle != nil {
|
||||
if wb.Version() >= version.Deneb && blobsBundle != nil {
|
||||
log.WithField("blobCount", len(blobsBundle.Blobs))
|
||||
}
|
||||
|
||||
@@ -124,6 +124,9 @@ func unblindBlobsSidecars(blindSidecars []*ethpb.SignedBlindedBlobSidecar, bundl
|
||||
if bundle == nil {
|
||||
return nil, nil
|
||||
}
|
||||
if len(blindSidecars) != len(bundle.Blobs) {
|
||||
return nil, errors.Errorf("blob count mismatch: wanted %d but got %d", len(blindSidecars), len(bundle.Blobs))
|
||||
}
|
||||
|
||||
sidecars := make([]*ethpb.SignedBlobSidecar, len(blindSidecars))
|
||||
for i, b := range blindSidecars {
|
||||
|
||||
Reference in New Issue
Block a user