Remove nil blob check from response logic

Removed check for nil blobs in response handling.
This commit is contained in:
rjl493456442 2025-09-04 11:04:00 +08:00 committed by GitHub
parent 14b6c739e8
commit 7079e12d79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -558,12 +558,6 @@ func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProo
res := make([]*engine.BlobAndProofV2, len(hashes))
for i := 0; i < len(blobs); i++ {
// the blob is missing, return null as response. It should
// be caught by `AvailableBlobs` though, perhaps data race
// occurs between two calls.
if blobs[i] == nil {
return nil, nil
}
var cellProofs []hexutil.Bytes
for _, proof := range proofs[i] {
cellProofs = append(cellProofs, proof[:])