mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
fixed spacing
This commit is contained in:
parent
3b8caf1f93
commit
d3ce3dbb1f
1 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue