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§
sourcefn on_new_validator_set(
validator_set: &ValidatorSet<AuthorityId>,
next_validator_set: &ValidatorSet<AuthorityId>,
)
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 ()
impl<AuthorityId> OnNewValidatorSet<AuthorityId> for ()
No-op implementation of OnNewValidatorSet.