referrerpolicy=no-referrer-when-downgrade
frame_support::traits

Trait RewardsReporter

Source
pub trait RewardsReporter<ValidatorId> {
    // Required method
    fn reward_by_ids(
        validators_points: impl IntoIterator<Item = (ValidatorId, u32)>,
    );
}
Expand description

Trait for reporting additional validator reward points

Required Methods§

Source

fn reward_by_ids( validators_points: impl IntoIterator<Item = (ValidatorId, u32)>, )

The input is an iterator of tuples of validator account IDs and the amount of points they should be rewarded.

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§

impl<T: Config> RewardsReporter<<T as Config>::AccountId> for Pallet<T>

impl<T: Config> RewardsReporter<<T as Config>::AccountId> for Pallet<T>