celestia-node icon indicating copy to clipboard operation
celestia-node copied to clipboard

share: `GetShares` method for `Getter` interface

Open Wondertan opened this issue 7 months ago • 7 comments

We only have the GetShare method, which gets us a single share/sample. It worked well before, but with shwap sampling protocol, we need a method that gets multiple shares within one call to allow batching requests.

GetShares(ctx context.Context, hdr *header.ExtendedHeader, shrIdxs ...int) ([]share.Share, error) 

The method can also satisfy singular requests, so we would also deprecate GetShare

Wondertan avatar Dec 03 '23 11:12 Wondertan