Skip to content

Commit

Permalink
Make fields of EraRewardPoints public (paritytech#11422)
Browse files Browse the repository at this point in the history
  • Loading branch information
kostekIV authored and godcodehunter committed Jun 22, 2022
1 parent 1a02560 commit d378fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ pub struct ActiveEraInfo {
#[derive(PartialEq, Encode, Decode, RuntimeDebug, TypeInfo)]
pub struct EraRewardPoints<AccountId: Ord> {
/// Total number of points. Equals the sum of reward points for each validator.
total: RewardPoint,
pub total: RewardPoint,
/// The reward points earned by a given validator.
individual: BTreeMap<AccountId, RewardPoint>,
pub individual: BTreeMap<AccountId, RewardPoint>,
}

impl<AccountId: Ord> Default for EraRewardPoints<AccountId> {
Expand Down

0 comments on commit d378fbd

Please sign in to comment.