referrerpolicy=no-referrer-when-downgrade

IsValidatorInactive

Trait IsValidatorInactive 

Source
pub trait IsValidatorInactive<AccountId> {
    // Required method
    fn is_inactive(
        era: EraIndex,
        stash: &AccountId,
        era_points: RewardPoint,
    ) -> bool;
}
Expand description

Check if validator was inactive at some era.

The check is based on the RewardPoint amount received during the era by the given validator.

Required Methods§

Source

fn is_inactive( era: EraIndex, stash: &AccountId, era_points: RewardPoint, ) -> bool

Tell if the validator considered inactive.

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<AccountId> IsValidatorInactive<AccountId> for ()

Source§

fn is_inactive( _era: EraIndex, _stash: &AccountId, era_points: RewardPoint, ) -> bool

Implementors§