mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 05:11:09 +00:00
Make staking add_reward_points_to_validator public (#3273)
* make staking add_reward_points_to_validator public * make storage private * bump version
This commit is contained in:
@@ -594,7 +594,7 @@ decl_storage! {
|
||||
pub CurrentEraStartSessionIndex get(current_era_start_session_index): SessionIndex;
|
||||
|
||||
/// Rewards for the current era. Using indices of current elected set.
|
||||
pub CurrentEraRewards: EraRewards;
|
||||
CurrentEraRewards get(current_era_reward): EraRewards;
|
||||
|
||||
/// The amount of balance actively at stake for each validator slot, currently.
|
||||
///
|
||||
@@ -1403,7 +1403,7 @@ impl<T: Trait> Module<T> {
|
||||
///
|
||||
/// At the end of the era each the total payout will be distributed among validator
|
||||
/// relatively to their points.
|
||||
fn add_reward_points_to_validator(validator: T::AccountId, points: u32) {
|
||||
pub fn add_reward_points_to_validator(validator: T::AccountId, points: u32) {
|
||||
<Module<T>>::current_elected().iter()
|
||||
.position(|elected| *elected == validator)
|
||||
.map(|index| {
|
||||
|
||||
Reference in New Issue
Block a user