referrerpolicy=no-referrer-when-downgrade
pallet_session::migrations::v1

Trait MigrateDisabledValidators

Source
pub trait MigrateDisabledValidators {
    // Required methods
    fn peek_disabled() -> Vec<(u32, OffenceSeverity)>;
    fn take_disabled() -> Vec<(u32, OffenceSeverity)>;
}

Required Methods§

Source

fn peek_disabled() -> Vec<(u32, OffenceSeverity)>

Peek the list of disabled validators and their offence severity.

Source

fn take_disabled() -> Vec<(u32, OffenceSeverity)>

Return the list of disabled validators and their offence severity, removing them from the underlying storage.

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.

Implementors§

Source§

impl<T: Config> MigrateDisabledValidators for InitOffenceSeverity<T>

impl<T: Config> MigrateDisabledValidators for MigrateDisabledToSession<T>