diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 4109971dc8..5dc0deb324 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -655,7 +655,12 @@ func (api *ConsensusAPI) getBlobs(ctx context.Context, hashes []common.Hash, v2 if len(hashes) > 128 { return nil, engine.TooLargeRequest.With(fmt.Errorf("requested blob count too large: %v", len(hashes))) } - available := len(api.eth.BlobTxPool().AvailableBlobs(hashes)) + available := 0 + for _, ok := range api.eth.BlobTxPool().AvailableBlobs(hashes) { + if ok { + available++ + } + } getBlobsRequestedCounter.Inc(int64(len(hashes))) getBlobsAvailableCounter.Inc(int64(available))