[Feature Request]: Make Avail ID
a tuple of (block_height, extrinsic_index)
#39
Labels
enhancement
New feature or request
ID
a tuple of (block_height, extrinsic_index)
#39
Implementation ideas
Currently, the
da.ID
implementation forAvailDA
contains only the block height where a blob was posted. This is not an exact pointer to the blob and hence, theGet(ctx context.Context, ids []da.ID, namespace da.Namespace)
method has to comb through all theDataTransactions
in the block to find it. In fact, it looks like theGet
method is currently returning all the blobs at theID
-specified block height.Adding
TransactionIndex
to theID
implementation of an Avail blob should solve the above as it is unique per blob submission transaction and can be used to directly pinpoint and retrieve a blob with a specifcID
on Avail.The text was updated successfully, but these errors were encountered: