Trait tc_consensus_slots::BackoffAuthoringBlocksStrategy[][src]

pub trait BackoffAuthoringBlocksStrategy<N> {
    fn should_backoff(
        &self,
        chain_head_number: N,
        chain_head_slot: Slot,
        finalized_number: N,
        slow_now: Slot,
        logging_target: &str
    ) -> bool; }

Trait for providing the strategy for when to backoff block authoring.

Required methods

fn should_backoff(
    &self,
    chain_head_number: N,
    chain_head_slot: Slot,
    finalized_number: N,
    slow_now: Slot,
    logging_target: &str
) -> bool
[src]

Returns true if we should backoff authoring new blocks.

Loading content...

Implementations on Foreign Types

impl<N> BackoffAuthoringBlocksStrategy<N> for ()[src]

Loading content...

Implementors

impl<N> BackoffAuthoringBlocksStrategy<N> for BackoffAuthoringOnFinalizedHeadLagging<N> where
    N: BaseArithmetic + Copy
[src]

Loading content...