mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
eth/catalyst: don't panic
This commit is contained in:
parent
e00e15a14c
commit
fdadde2466
1 changed files with 4 additions and 0 deletions
|
|
@ -614,6 +614,10 @@ func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProo
|
||||||
// already filled
|
// already filled
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if sidecar == nil {
|
||||||
|
// not found, return empty response
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
if len(sidecar.Blobs) != len(sidecar.Proofs)*kzg4844.CellProofsPerBlob {
|
if len(sidecar.Blobs) != len(sidecar.Proofs)*kzg4844.CellProofsPerBlob {
|
||||||
return nil, errors.New("NORMAL PROOFS IN GETBLOBSV2, THIS SHOULD NEVER HAPPEN, PLEASE REPORT")
|
return nil, errors.New("NORMAL PROOFS IN GETBLOBSV2, THIS SHOULD NEVER HAPPEN, PLEASE REPORT")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue