Trait pallet_staking::DisablingStrategy
source · pub trait DisablingStrategy<T: Config> {
// Required method
fn decision(
offender_stash: &T::AccountId,
offender_slash_severity: OffenceSeverity,
slash_era: EraIndex,
currently_disabled: &Vec<(u32, OffenceSeverity)>,
) -> DisablingDecision;
}
Expand description
Controls validator disabling
Required Methods§
sourcefn decision(
offender_stash: &T::AccountId,
offender_slash_severity: OffenceSeverity,
slash_era: EraIndex,
currently_disabled: &Vec<(u32, OffenceSeverity)>,
) -> DisablingDecision
fn decision( offender_stash: &T::AccountId, offender_slash_severity: OffenceSeverity, slash_era: EraIndex, currently_disabled: &Vec<(u32, OffenceSeverity)>, ) -> DisablingDecision
Make a disabling decision. Returning a DisablingDecision
Object Safety§
This trait is not object safe.