Skip to content

Commit

Permalink
Change average location trust score requirement for boosted hexes fro…
Browse files Browse the repository at this point in the history
…m 1.0 to greater than or equal to 0.75 (#771)
  • Loading branch information
bbalser authored Mar 26, 2024
1 parent 0f5718f commit 1b709a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions file_store/src/cli/bucket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ impl Get {
fs::OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.open(&self.dest.join(Path::new(&info.key)))
.map_err(Error::from)
.and_then(|mut file| {
Expand Down
1 change: 1 addition & 0 deletions file_store/src/file_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ impl FileSink {
OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.open(&new_path)
.await?,
));
Expand Down
4 changes: 2 additions & 2 deletions mobile_verifier/src/reward_shares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ impl HotspotPoints {
let cbsd_id = radio_key.clone().into_cbsd_id();
let rp = self.radio_points.get_mut(&cbsd_id).unwrap();
// need to consider requirements from hip93 & hip84 before applying any boost
// hip93: if radio is wifi & location_trust score multiplier < 1, no boosting
// hip93: if radio is wifi & location_trust score multiplier < 0.75, no boosting
// hip84: if radio has not met minimum data and subscriber thresholds, no boosting
let final_boost_info = if radio_key.is_wifi()
&& rp.location_trust_score_multiplier < dec!(1)
&& rp.location_trust_score_multiplier < dec!(0.75)
|| !verified_radio_thresholds.is_verified(hotspot, cbsd_id)
{
BoostedHex {
Expand Down

0 comments on commit 1b709a8

Please sign in to comment.