diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index f52c4c2d67..9370fc0f8f 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -1822,10 +1822,8 @@ func (p *BlobPool) GetBlobHashes(txHash common.Hash) []common.Hash { return vhashes } -// GetBlobCells returns cells for the given versioned blob hashes, -// filtered by the requested cell indices(mask). -// Each entry in the result corresponds to one vhash. Nil entries mean the blob -// was not available. +// GetBlobCells returns cells for the given versioned blob hashes. Nil entires +// mean that the cell was not available. func (p *BlobPool) GetBlobCells(vhashes []common.Hash, mask types.CustodyBitmap) ([][]*kzg4844.Cell, [][]*kzg4844.Proof, error) { var ( cells = make([][]*kzg4844.Cell, len(vhashes)) diff --git a/core/txpool/blobpool/cache.go b/core/txpool/blobpool/cache.go index a6632ddb6c..4cb1238d74 100644 --- a/core/txpool/blobpool/cache.go +++ b/core/txpool/blobpool/cache.go @@ -246,6 +246,10 @@ func (c *Cache) GetBlobs(ctx context.Context, vhashes []common.Hash, version byt return blobs, commitments, proofs, nil } +// GetCells returns cells for the given versioned blob hashes, filtered +// by the requested cell indices(mask). Each entry in the result +// corresponds to one vhash. Nil entries mean the cell was not available. +// If the cell is not available in cache, it falls back to the blobpool. func (c *Cache) GetCells(vhashes []common.Hash, mask types.CustodyBitmap) ([][]*kzg4844.Cell, [][]*kzg4844.Proof, error) { var ( cells = make([][]*kzg4844.Cell, len(vhashes))