Type Alias sc_consensus::import_queue::DefaultImportQueue

source ·
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>

source

pub fn new<V>( verifier: V, block_import: BoxBlockImport<B>, justification_import: Option<BoxJustificationImport<B>>, spawner: &impl SpawnEssentialNamed, prometheus_registry: Option<&Registry>, ) -> Self
where 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>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<B: BlockT> ImportQueue<B> for BasicQueue<B>

source§

fn service(&self) -> Box<dyn ImportQueueService<B>>

Get handle to ImportQueueService.

source§

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: &mut dyn Link<B>)

Poll actions from network.

source§

fn run<'async_trait>( self, link: Box<dyn Link<B>>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,

Start asynchronous runner for import queue.

Takes an object implementing Link which allows the import queue to influence the synchronization process.