referrerpolicy=no-referrer-when-downgrade

RewardPoints

Trait RewardPoints 

Source
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§

Source

fn reward(service: ServiceKind, points: Vec<(AccountId, u32)>)

Credit points earned for service to the active era.

Source

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.

Implementors§