referrerpolicy=no-referrer-when-downgrade

Trait sp_consensus_beefy::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.

Object Safety§

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§