Skip to content

Commit

Permalink
Follow pattern of keeping 1 days worth of info (#871)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
michaeldjeffrey authored Oct 1, 2024
1 parent d81838a commit b304f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile_verifier/src/rewarder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b304f51

Please sign in to comment.