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