pub trait ImportQueueService<B: BlockT>: Send {
    // Required methods
    fn import_blocks(
        &mut self,
        origin: BlockOrigin,
        blocks: Vec<IncomingBlock<B>>
    );
    fn import_justifications(
        &mut self,
        who: RuntimeOrigin,
        hash: B::Hash,
        number: NumberFor<B>,
        justifications: Justifications
    );
}
Expand description

Blocks import queue API.

The import_* methods can be called in order to send elements for the import queue to verify.

Required Methods§

source

fn import_blocks(&mut self, origin: BlockOrigin, blocks: Vec<IncomingBlock<B>>)

Import bunch of blocks.

source

fn import_justifications( &mut self, who: RuntimeOrigin, hash: B::Hash, number: NumberFor<B>, justifications: Justifications )

Import block justifications.

Implementors§