fixed spacing

This commit is contained in:
SunnysidedJ 2025-05-16 16:34:56 +09:00
parent 3b8caf1f93
commit d3ce3dbb1f
No known key found for this signature in database
GPG key ID: 4A3483B2B3B72950

View file

@ -567,9 +567,9 @@ func (api *ConsensusAPI) GetBlobsV1(hashes []common.Hash) ([]*engine.BlobAndProo
sidecars = api.eth.TxPool().GetBlobs(hashes) sidecars = api.eth.TxPool().GetBlobs(hashes)
) )
for i, hash := range hashes { for i, hash := range hashes {
index[hash] = i index[hash] = i
} }
for i, sidecar := range sidecars { for i, sidecar := range sidecars {
if res[i] != nil || sidecar == nil { if res[i] != nil || sidecar == nil {
@ -595,7 +595,7 @@ func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProo
return nil, engine.TooLargeRequest.With(fmt.Errorf("requested blob count too large: %v", len(hashes))) return nil, engine.TooLargeRequest.With(fmt.Errorf("requested blob count too large: %v", len(hashes)))
} }
getBlobsV2BlobsRequestedTotal.Inc(int64(len(hashes))) getBlobsV2BlobsRequestedTotal.Inc(int64(len(hashes)))
// Optimization: check first if all blobs are available, if not, return empty response // Optimization: check first if all blobs are available, if not, return empty response
blobCounts := api.eth.TxPool().GetBlobCounts(hashes) blobCounts := api.eth.TxPool().GetBlobCounts(hashes)