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§
Sourcefn is_inactive(
era: EraIndex,
stash: &AccountId,
era_points: RewardPoint,
) -> bool
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.