Struct sc_consensus_babe::BabeParams [−][src]
pub struct BabeParams<B: BlockT, C, SC, E, I, SO, L, CIDP, BS, CAW> {}Show fields
pub keystore: SyncCryptoStorePtr, pub client: Arc<C>, pub select_chain: SC, pub env: E, pub block_import: I, pub sync_oracle: SO, pub justification_sync_link: L, pub create_inherent_data_providers: CIDP, pub force_authoring: bool, pub backoff_authoring_blocks: Option<BS>, pub babe_link: BabeLink<B>, pub can_author_with: CAW, pub block_proposal_slot_portion: SlotProportion, pub max_block_proposal_slot_portion: Option<SlotProportion>, pub telemetry: Option<TelemetryHandle>,
Expand description
Parameters for BABE.
Fields
keystore: SyncCryptoStorePtr
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
justification_sync_link: L
Hook into the sync module to control the justification sync process.
create_inherent_data_providers: CIDP
Something that can create the inherent data providers.
Force authoring of blocks even if we are offline
Strategy and parameters for backing off block production.
babe_link: BabeLink<B>
The source of timestamps for relative slots
Checks if the current native implementation can author with a runtime at a given block.
block_proposal_slot_portion: SlotProportion
The proportion of the slot dedicated to proposing.
The block proposing will be limited to this proportion of the slot from the starting of the slot. However, the proposing can still take longer when there is some lenience factor applied, because there were no blocks produced for some slots.
max_block_proposal_slot_portion: Option<SlotProportion>
The maximum proportion of the slot dedicated to proposing with any lenience factor applied due to no blocks being produced.
telemetry: Option<TelemetryHandle>
Handle use to report telemetries.
Auto Trait Implementations
impl<B, C, SC, E, I, SO, L, CIDP, BS, CAW> !RefUnwindSafe for BabeParams<B, C, SC, E, I, SO, L, CIDP, BS, CAW>
impl<B, C, SC, E, I, SO, L, CIDP, BS, CAW> Send for BabeParams<B, C, SC, E, I, SO, L, CIDP, BS, CAW> where
BS: Send,
C: Send + Sync,
CAW: Send,
CIDP: Send,
E: Send,
I: Send,
L: Send,
SC: Send,
SO: Send,
impl<B, C, SC, E, I, SO, L, CIDP, BS, CAW> Sync for BabeParams<B, C, SC, E, I, SO, L, CIDP, BS, CAW> where
BS: Sync,
C: Send + Sync,
CAW: Sync,
CIDP: Sync,
E: Sync,
I: Sync,
L: Sync,
SC: Sync,
SO: Sync,
impl<B, C, SC, E, I, SO, L, CIDP, BS, CAW> Unpin for BabeParams<B, C, SC, E, I, SO, L, CIDP, BS, CAW> where
BS: Unpin,
CAW: Unpin,
CIDP: Unpin,
E: Unpin,
I: Unpin,
L: Unpin,
SC: Unpin,
SO: Unpin,
impl<B, C, SC, E, I, SO, L, CIDP, BS, CAW> !UnwindSafe for BabeParams<B, C, SC, E, I, SO, L, CIDP, BS, CAW>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more