Skip to content

Commit

Permalink
make sure qualified radios are exempt from sp banning
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed Dec 2, 2024
1 parent 9f570f0 commit c44c915
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions mobile_verifier/src/reward_shares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,14 @@ impl CoverageShares {
})
.collect();

let oracle_boosting_status = if banned_radios.contains(&pubkey, cbsd_id.as_deref()) {
OracleBoostingStatus::Banned
} else if unique_connections::is_qualified(unique_connections, &pubkey, &radio_type) {
OracleBoostingStatus::Qualified
} else {
OracleBoostingStatus::Eligible
};
let oracle_boosting_status =
if unique_connections::is_qualified(unique_connections, &pubkey, &radio_type) {
OracleBoostingStatus::Qualified
} else if banned_radios.contains(&pubkey, cbsd_id.as_deref()) {
OracleBoostingStatus::Banned
} else {
OracleBoostingStatus::Eligible
};

let sp_boosted_reward_eligibility =
boosted_hex_eligibility.eligibility(pubkey, cbsd_id);
Expand Down

0 comments on commit c44c915

Please sign in to comment.