From fdadde2466b74ef400b179347d4ce3727f9dc19c Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Tue, 8 Apr 2025 13:45:36 +0200 Subject: [PATCH] eth/catalyst: don't panic --- eth/catalyst/api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 1c5390e7e3..65b0aca08e 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -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") }