Trait sc_consensus::import_queue::ImportQueueService
source · 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§
sourcefn import_blocks(&mut self, origin: BlockOrigin, blocks: Vec<IncomingBlock<B>>)
fn import_blocks(&mut self, origin: BlockOrigin, blocks: Vec<IncomingBlock<B>>)
Import bunch of blocks, every next block must be an ancestor of the previous block in the list.
sourcefn import_justifications(
&mut self,
who: RuntimeOrigin,
hash: B::Hash,
number: NumberFor<B>,
justifications: Justifications,
)
fn import_justifications( &mut self, who: RuntimeOrigin, hash: B::Hash, number: NumberFor<B>, justifications: Justifications, )
Import block justifications.