referrerpolicy=no-referrer-when-downgrade

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§

source

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.

Implementors§

source§

impl<T: Config, const DISABLING_LIMIT_FACTOR: usize> DisablingStrategy<T> for UpToLimitDisablingStrategy<DISABLING_LIMIT_FACTOR>

source§

impl<T: Config, const DISABLING_LIMIT_FACTOR: usize> DisablingStrategy<T> for UpToLimitWithReEnablingDisablingStrategy<DISABLING_LIMIT_FACTOR>