ValidatorSetProvider

Trait ValidatorSetProvider 

Source
pub trait ValidatorSetProvider<A>: Send + Sync {
    // Required method
    fn get_validator_set(&self, height: u64) -> ValidatorSet<A>;
}
Expand description

A trait for retrieving the validator set at a specific blockchain height.

This trait allows consensus to dynamically determine the set of validators that are eligible to participate in consensus at any given height.

This is useful for handling validator set changes across heights.

Required Methods§

Source

fn get_validator_set(&self, height: u64) -> ValidatorSet<A>

Get the validator set for the given height.

§Arguments
  • height: The blockchain height
§Returns

Returns the validator set for the given height.

Implementors§