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§
Sourcefn reward_by_ids(
validators_points: impl IntoIterator<Item = (ValidatorId, u32)>,
)
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.