mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
Remove nil blob check from response logic
Removed check for nil blobs in response handling.
This commit is contained in:
parent
14b6c739e8
commit
7079e12d79
1 changed files with 0 additions and 6 deletions
|
|
@ -558,12 +558,6 @@ func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProo
|
||||||
|
|
||||||
res := make([]*engine.BlobAndProofV2, len(hashes))
|
res := make([]*engine.BlobAndProofV2, len(hashes))
|
||||||
for i := 0; i < len(blobs); i++ {
|
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
|
var cellProofs []hexutil.Bytes
|
||||||
for _, proof := range proofs[i] {
|
for _, proof := range proofs[i] {
|
||||||
cellProofs = append(cellProofs, proof[:])
|
cellProofs = append(cellProofs, proof[:])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue