pub trait DisablingStrategy<T: Config> {
    // Required method
    fn decision(
        offender_stash: &T::AccountId,
        slash_era: EraIndex,
        currently_disabled: &Vec<u32>
    ) -> Option<u32>;
}
Expand description

Controls validator disabling

Required Methods§

source

fn decision( offender_stash: &T::AccountId, slash_era: EraIndex, currently_disabled: &Vec<u32> ) -> Option<u32>

Make a disabling decision. Returns the index of the validator to disable or None if no new validator should be disabled.

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>