From 5f16a5ea740fc7702d71c0fa47fe09f22c2d9859 Mon Sep 17 00:00:00 2001 From: healthykim Date: Mon, 15 Jun 2026 22:48:34 +0200 Subject: [PATCH] core/txpool: add documentation on GetCells and GetBlobCells --- core/txpool/blobpool/blobpool.go | 6 ++---- core/txpool/blobpool/cache.go | 4 ++++ 2 files changed, 6 insertions(+), 4 deletions(-) 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))