ValidatorSetProvider

Trait ValidatorSetProvider 

Source
pub trait ValidatorSetProvider<A> {
    // Required method
    fn get_validator_set(&self, height: u64) -> Result<ValidatorSet<A>, Error>;
}
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§

Implementors§