Trait node_testing::client::sp_consensus::Environment [−][src]
pub trait Environment<B> where
B: Block, { type Proposer: 'static + Proposer<B> + Send; type CreateProposer: 'static + Future + Send + Unpin; type Error: 'static + From<Error> + Debug; fn init(
&mut self,
parent_header: &<B as Block>::Header
) -> Self::CreateProposer; }
Expand description
Environment for a Consensus instance.
Creates proposer instance.
Associated Types
type CreateProposer: 'static + Future + Send + Unpin
type CreateProposer: 'static + Future + Send + Unpin
A future that resolves to the proposer.
Required methods
fn init(&mut self, parent_header: &<B as Block>::Header) -> Self::CreateProposer
fn init(&mut self, parent_header: &<B as Block>::Header) -> Self::CreateProposer
Initialize the proposal logic on top of a specific header. Provide the authorities at that header.