Trait sc_service::ImportQueue [−][src]
Blocks import queue API.
The import_*
methods can be called in order to send elements for the import queue to verify.
Afterwards, call poll_actions
to determine how to respond to these elements.
Required methods
pub fn import_blocks(
&mut self,
origin: BlockOrigin,
blocks: Vec<IncomingBlock<B>, Global>
)
[src]
&mut self,
origin: BlockOrigin,
blocks: Vec<IncomingBlock<B>, Global>
)
Import bunch of blocks.
pub fn import_justification(
&mut self,
who: PeerId,
hash: <B as Block>::Hash,
number: <<B as Block>::Header as Header>::Number,
justification: Vec<u8, Global>
)
[src]
&mut self,
who: PeerId,
hash: <B as Block>::Hash,
number: <<B as Block>::Header as Header>::Number,
justification: Vec<u8, Global>
)
Import a block justification.
pub fn import_finality_proof(
&mut self,
who: PeerId,
hash: <B as Block>::Hash,
number: <<B as Block>::Header as Header>::Number,
finality_proof: Vec<u8, Global>
)
[src]
&mut self,
who: PeerId,
hash: <B as Block>::Hash,
number: <<B as Block>::Header as Header>::Number,
finality_proof: Vec<u8, Global>
)
Import block finality proof.
pub fn poll_actions(&mut self, cx: &mut Context<'_>, link: &mut dyn Link<B>)
[src]
Polls for actions to perform on the network.
This method should behave in a way similar to Future::poll
. It can register the current
task and notify later when more actions are ready to be polled. To continue the comparison,
it is as if this method always returned Poll::Pending
.
Implementations on Foreign Types
impl<B, Transaction> ImportQueue<B> for BasicQueue<B, Transaction> where
B: Block,
Transaction: Send,
[src]
B: Block,
Transaction: Send,
pub fn import_blocks(
&mut self,
origin: BlockOrigin,
blocks: Vec<IncomingBlock<B>, Global>
)
[src]
&mut self,
origin: BlockOrigin,
blocks: Vec<IncomingBlock<B>, Global>
)
pub fn import_justification(
&mut self,
who: PeerId,
hash: <B as Block>::Hash,
number: <<B as Block>::Header as Header>::Number,
justification: Vec<u8, Global>
)
[src]
&mut self,
who: PeerId,
hash: <B as Block>::Hash,
number: <<B as Block>::Header as Header>::Number,
justification: Vec<u8, Global>
)
pub fn import_finality_proof(
&mut self,
who: PeerId,
hash: <B as Block>::Hash,
number: <<B as Block>::Header as Header>::Number,
finality_proof: Vec<u8, Global>
)
[src]
&mut self,
who: PeerId,
hash: <B as Block>::Hash,
number: <<B as Block>::Header as Header>::Number,
finality_proof: Vec<u8, Global>
)