mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
core/txpool: add documentation on GetCells and GetBlobCells
This commit is contained in:
parent
cff263473f
commit
5f16a5ea74
2 changed files with 6 additions and 4 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue