referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::DisabledValidators

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§

fn is_disabled(index: u32) -> bool

Returns true if the given validator is disabled.

fn disabled_validators() -> Vec<u32>

Returns all disabled validators

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl DisabledValidators for ()

Implementors§