BlockParticipationProvider

Trait BlockParticipationProvider 

Source
pub trait BlockParticipationProvider<Moment, BlockProducer> {
    // Required methods
    fn blocks_to_process(
        moment: &Moment,
    ) -> impl Iterator<Item = (Moment, BlockProducer)>;
    fn discard_processed_blocks(moment: &Moment);
}
Expand description

Source of block participation data

Required Methods§

Source

fn blocks_to_process( moment: &Moment, ) -> impl Iterator<Item = (Moment, BlockProducer)>

Returns the block data for processing

Source

fn discard_processed_blocks(moment: &Moment)

Discards processed data

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§