referrerpolicy=no-referrer-when-downgrade
frame_support::traits

Trait DisabledValidators

Source
pub trait DisabledValidators {
    // Required methods
    fn is_disabled(index: u32) -> bool;
    fn disabled_validators() -> Vec<u32>;
}
Expand description

Trait used to check whether a given validator is currently disabled and should not be participating in consensus (e.g. because they equivocated).

Required Methods§

Source

fn is_disabled(index: u32) -> bool

Returns true if the given validator is disabled.

Source

fn disabled_validators() -> Vec<u32>

Returns all disabled validators

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DisabledValidators for ()

Implementors§

impl<T: Config> DisabledValidators for Pallet<T>