From b304f516cb425ee604affccf174d2273de341218 Mon Sep 17 00:00:00 2001 From: Michael Jeffrey Date: Tue, 1 Oct 2024 16:41:04 -0700 Subject: [PATCH] Follow pattern of keeping 1 days worth of info (#871) When fetching mapping events, we constrain correctly by the reward_epoch. When they are removed, we want to keep around a days worth in case we need to debug a days rewards. --- mobile_verifier/src/rewarder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile_verifier/src/rewarder.rs b/mobile_verifier/src/rewarder.rs index 0c7ec6cb4..055b4a399 100644 --- a/mobile_verifier/src/rewarder.rs +++ b/mobile_verifier/src/rewarder.rs @@ -295,7 +295,7 @@ where data_session::clear_hotspot_data_sessions(&mut transaction, &reward_period.start).await?; coverage::clear_coverage_objects(&mut transaction, &reward_period.start).await?; sp_boosted_rewards_bans::clear_bans(&mut transaction, reward_period.start).await?; - subscriber_verified_mapping_event::clear(&mut transaction, &reward_period.end).await?; + subscriber_verified_mapping_event::clear(&mut transaction, &reward_period.start).await?; // subscriber_location::clear_location_shares(&mut transaction, &reward_period.end).await?; let next_reward_period = scheduler.next_reward_period();