[][src]Struct sc_consensus_babe::BabeParams

pub struct BabeParams<B: BlockT, C, E, I, SO, SC, CAW> {
    pub keystore: KeyStorePtr,
    pub client: Arc<C>,
    pub select_chain: SC,
    pub env: E,
    pub block_import: I,
    pub sync_oracle: SO,
    pub inherent_data_providers: InherentDataProviders,
    pub force_authoring: bool,
    pub babe_link: BabeLink<B>,
    pub can_author_with: CAW,
}

Parameters for BABE.

Fields

keystore: KeyStorePtr

The keystore that manages the keys of the node.

client: Arc<C>

The client to use

select_chain: SC

The SelectChain Strategy

env: E

The environment we are producing blocks for.

block_import: I

The underlying block-import object to supply our produced blocks to. This must be a BabeBlockImport or a wrapper of it, otherwise critical consensus logic will be omitted.

sync_oracle: SO

A sync oracle

inherent_data_providers: InherentDataProviders

Providers for inherent data.

force_authoring: bool

Force authoring of blocks even if we are offline

babe_link: BabeLink<B>

The source of timestamps for relative slots

can_author_with: CAW

Checks if the current native implementation can author with a runtime at a given block.

Auto Trait Implementations

impl<B, C, E, I, SO, SC, CAW> !RefUnwindSafe for BabeParams<B, C, E, I, SO, SC, CAW>

impl<B, C, E, I, SO, SC, CAW> Send for BabeParams<B, C, E, I, SO, SC, CAW> where
    C: Send + Sync,
    CAW: Send,
    E: Send,
    I: Send,
    SC: Send,
    SO: Send,
    <B as Block>::Hash: Send,
    <B as Block>::Header: Header,
    <<B as Block>::Header as Header>::Number: Send

impl<B, C, E, I, SO, SC, CAW> Sync for BabeParams<B, C, E, I, SO, SC, CAW> where
    C: Send + Sync,
    CAW: Sync,
    E: Sync,
    I: Sync,
    SC: Sync,
    SO: Sync,
    <B as Block>::Hash: Send,
    <B as Block>::Header: Header,
    <<B as Block>::Header as Header>::Number: Send

impl<B, C, E, I, SO, SC, CAW> Unpin for BabeParams<B, C, E, I, SO, SC, CAW> where
    CAW: Unpin,
    E: Unpin,
    I: Unpin,
    SC: Unpin,
    SO: Unpin

impl<B, C, E, I, SO, SC, CAW> !UnwindSafe for BabeParams<B, C, E, I, SO, SC, CAW>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 
[src]

fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,