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§

source

type Context: Context

Context type

Required Methods§

source

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.

  1. current_blobs - blobs that were received from the network for the current slot.
  2. working_set - the working to access storage. It returns a vector containing a mix of borrowed and owned blobs.

Implementors§