referrerpolicy=no-referrer-when-downgrade
pub trait BackoffAuthoringBlocksStrategy<N> {
    // Required method
    fn should_backoff(
        &self,
        chain_head_number: N,
        chain_head_slot: Slot,
        finalized_number: N,
        slow_now: Slot,
        logging_target: &str,
    ) -> bool;
}
Expand description

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

Required Methods§

source

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

Returns true if we should backoff authoring new blocks.

Implementations on Foreign Types§

source§

impl<N> BackoffAuthoringBlocksStrategy<N> for ()

source§

fn should_backoff( &self, _chain_head_number: N, _chain_head_slot: Slot, _finalized_number: N, _slot_now: Slot, _logging_target: &str, ) -> bool

Implementors§