pub type DefaultImportQueue<Block> = BasicQueue<Block>;
Expand description
A commonly-used Import Queue type.
This defines the transaction type of the BasicQueue
to be the transaction type for a client.
Aliased Type§
struct DefaultImportQueue<Block> { /* private fields */ }
Implementations
Source§impl<B: BlockT> BasicQueue<B>
impl<B: BlockT> BasicQueue<B>
Sourcepub fn new<V>(
verifier: V,
block_import: BoxBlockImport<B>,
justification_import: Option<BoxJustificationImport<B>>,
spawner: &impl SpawnEssentialNamed,
prometheus_registry: Option<&Registry>,
) -> Selfwhere
V: Verifier<B> + 'static,
pub fn new<V>(
verifier: V,
block_import: BoxBlockImport<B>,
justification_import: Option<BoxJustificationImport<B>>,
spawner: &impl SpawnEssentialNamed,
prometheus_registry: Option<&Registry>,
) -> Selfwhere
V: Verifier<B> + 'static,
Instantiate a new basic queue, with given verifier.
This creates a background task, and calls on_start
on the justification importer.
Trait Implementations
Source§impl<B: BlockT> Drop for BasicQueue<B>
impl<B: BlockT> Drop for BasicQueue<B>
Source§impl<B: BlockT> ImportQueue<B> for BasicQueue<B>
impl<B: BlockT> ImportQueue<B> for BasicQueue<B>
Source§fn service(&self) -> Box<dyn ImportQueueService<B>>
fn service(&self) -> Box<dyn ImportQueueService<B>>
Get handle to ImportQueueService
.
Source§fn service_ref(&mut self) -> &mut dyn ImportQueueService<B>
fn service_ref(&mut self) -> &mut dyn ImportQueueService<B>
Get a reference to the handle to ImportQueueService
.
Source§fn poll_actions(&mut self, cx: &mut Context<'_>, link: &dyn Link<B>)
fn poll_actions(&mut self, cx: &mut Context<'_>, link: &dyn Link<B>)
Poll actions from network.
Source§fn run<'life0, 'async_trait>(
self,
link: &'life0 dyn Link<B>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
self,
link: &'life0 dyn Link<B>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start asynchronous runner for import queue.
Takes an object implementing Link
which allows the import queue to
influence the synchronization process.