Trait sov_modules_api::capabilities::BlobSelector
source · pub trait BlobSelector<Da: DaSpec> {
type Context: Context;
// Required method
fn get_blobs_for_this_slot<'a, I>(
&self,
current_blobs: I,
working_set: &mut WorkingSet<<Self::Context as Spec>::Storage>
) -> Result<Vec<BlobRefOrOwned<'a, Da::BlobTransaction>>>
where I: IntoIterator<Item = &'a mut Da::BlobTransaction>;
}
Expand description
BlobSelector decides which blobs to process in a current slot.
Required Associated Types§
Required Methods§
sourcefn get_blobs_for_this_slot<'a, I>(
&self,
current_blobs: I,
working_set: &mut WorkingSet<<Self::Context as Spec>::Storage>
) -> Result<Vec<BlobRefOrOwned<'a, Da::BlobTransaction>>>where
I: IntoIterator<Item = &'a mut Da::BlobTransaction>,
fn get_blobs_for_this_slot<'a, I>( &self, current_blobs: I, working_set: &mut WorkingSet<<Self::Context as Spec>::Storage> ) -> Result<Vec<BlobRefOrOwned<'a, Da::BlobTransaction>>>where I: IntoIterator<Item = &'a mut Da::BlobTransaction>,
It takes two arguments.
current_blobs
- blobs that were received from the network for the current slot.working_set
- the working to access storage. It returns a vector containing a mix of borrowed and owned blobs.