From 89d3820adc36589b925ee60728a2769c64f1d976 Mon Sep 17 00:00:00 2001 From: Matthew Plant Date: Sun, 21 Jul 2024 23:54:33 -0400 Subject: [PATCH] Make `modeled` field in `HexPoints` public (#842) --- coverage_point_calculator/src/hexes.rs | 2 +- file_store/src/reward_manifest.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/coverage_point_calculator/src/hexes.rs b/coverage_point_calculator/src/hexes.rs index a68da1ccc..c784390f7 100644 --- a/coverage_point_calculator/src/hexes.rs +++ b/coverage_point_calculator/src/hexes.rs @@ -29,7 +29,7 @@ pub struct HexPoints { /// /// This is a convenience field for debugging, hexes can reach similar /// values through different means, it helps to know the starting value. - modeled: Decimal, + pub modeled: Decimal, /// Points including Coverage affected multipliers /// /// modeled + (Rank * Assignment) diff --git a/file_store/src/reward_manifest.rs b/file_store/src/reward_manifest.rs index ac8dab666..6942da221 100644 --- a/file_store/src/reward_manifest.rs +++ b/file_store/src/reward_manifest.rs @@ -14,8 +14,8 @@ pub struct RewardManifest { #[derive(Clone, Debug)] pub enum RewardData { MobileRewardData { - poc_bones_per_coverage_point: Decimal, - boosted_poc_bones_per_coverage_point: Decimal, + poc_bones_per_reward_share: Decimal, + boosted_poc_bones_per_reward_share: Decimal, }, IotRewardData { poc_bones_per_beacon_reward_share: Decimal, @@ -49,16 +49,16 @@ impl TryFrom for RewardManifest { reward_data: match value.reward_data { Some(proto::reward_manifest::RewardData::MobileRewardData(reward_data)) => { Some(RewardData::MobileRewardData { - poc_bones_per_coverage_point: reward_data + poc_bones_per_reward_share: reward_data .poc_bones_per_reward_share - .ok_or(DecodeError::empty_field("poc_bones_per_coverage_point"))? + .ok_or(DecodeError::empty_field("poc_bones_per_reward_share"))? .value .parse() .map_err(DecodeError::from)?, - boosted_poc_bones_per_coverage_point: reward_data + boosted_poc_bones_per_reward_share: reward_data .boosted_poc_bones_per_reward_share .ok_or(DecodeError::empty_field( - "boosted_poc_bones_per_coverage_point", + "boosted_poc_bones_per_reward_share", ))? .value .parse()