eth/catalyst: don't panic

This commit is contained in:
Marius van der Wijden 2025-04-08 13:45:36 +02:00 committed by MariusVanDerWijden
parent e00e15a14c
commit fdadde2466

View file

@ -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")
} }