referrerpolicy=no-referrer-when-downgrade
sp_consensus_beefy

Trait OnNewValidatorSet

Source
pub trait OnNewValidatorSet<AuthorityId> {
    // Required method
    fn on_new_validator_set(
        validator_set: &ValidatorSet<AuthorityId>,
        next_validator_set: &ValidatorSet<AuthorityId>,
    );
}
Expand description

New BEEFY validator set notification hook.

Required Methods§

Source

fn on_new_validator_set( validator_set: &ValidatorSet<AuthorityId>, next_validator_set: &ValidatorSet<AuthorityId>, )

Function called by the pallet when BEEFY validator set changes.

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.

Implementations on Foreign Types§

Source§

impl<AuthorityId> OnNewValidatorSet<AuthorityId> for ()

No-op implementation of OnNewValidatorSet.

Source§

fn on_new_validator_set( _: &ValidatorSet<AuthorityId>, _: &ValidatorSet<AuthorityId>, )

Implementors§

impl<T> OnNewValidatorSet<<T as Config>::BeefyId> for Pallet<T>
where T: Config,