From c44c915b21e3099a2efcb3f029cf36114e239356 Mon Sep 17 00:00:00 2001 From: Michael Jeffrey Date: Mon, 2 Dec 2024 16:07:33 -0700 Subject: [PATCH] make sure qualified radios are exempt from sp banning --- mobile_verifier/src/reward_shares.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mobile_verifier/src/reward_shares.rs b/mobile_verifier/src/reward_shares.rs index 10159ba72..38f1209a3 100644 --- a/mobile_verifier/src/reward_shares.rs +++ b/mobile_verifier/src/reward_shares.rs @@ -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);