pub trait RewardPoints<AccountId> {
// Required methods
fn reward(service: ServiceKind, points: Vec<(AccountId, u32)>);
fn weight(entries: u32) -> Weight;
}Expand description
Credits era points to validators.
Required Methods§
Sourcefn reward(service: ServiceKind, points: Vec<(AccountId, u32)>)
fn reward(service: ServiceKind, points: Vec<(AccountId, u32)>)
Credit points earned for service to the active era.
Sourcefn weight(entries: u32) -> Weight
fn weight(entries: u32) -> Weight
Weight of Self::reward for entries entries.
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.