Make fields of EraRewardPoints public (#11422)

This commit is contained in:
kostekIV
2022-05-19 11:10:49 +02:00
committed by GitHub
parent dd854c16e2
commit ba1f31d040
+2 -2
View File
@@ -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> {