Skip to content

Commit

Permalink
use unique_connections in reward_from_db
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed Dec 12, 2024
1 parent 10aef6b commit f82f617
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mobile_verifier/src/cli/reward_from_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use crate::{
rewarder::boosted_hex_eligibility::BoostedHexEligibility,
sp_boosted_rewards_bans::BannedRadios,
speedtests_average::SpeedtestAverages,
unique_connections::UniqueConnectionCounts,
Settings,
unique_connections, Settings,
};
use anyhow::Result;
use chrono::NaiveDateTime;
Expand Down Expand Up @@ -44,14 +43,16 @@ impl Cmd {
let speedtest_averages =
SpeedtestAverages::aggregate_epoch_averages(epoch.end, &pool).await?;

let unique_connections = unique_connections::db::get(&pool, &epoch).await?;

let reward_shares = CoverageShares::new(
&pool,
heartbeats,
&speedtest_averages,
&BoostedHexes::default(),
&BoostedHexEligibility::default(),
&BannedRadios::default(),
&UniqueConnectionCounts::default(),
&unique_connections,
&epoch,
)
.await?;
Expand Down

0 comments on commit f82f617

Please sign in to comment.