Skip to content

Commit

Permalink
update proto branch and use new types
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed Sep 30, 2024
1 parent 6a53755 commit 3f24307
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 23 deletions.
50 changes: 31 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ helium-lib = { git = "https://github.com/helium/helium-wallet-rs.git", branch =
hextree = { git = "https://github.com/jaykickliter/HexTree", branch = "main", features = [
"disktree",
] }
helium-proto = { git = "https://github.com/helium/proto", branch = "master", features = [
helium-proto = { git = "https://github.com/helium/proto", branch = "mj/do-device-type", features = [
"services",
] }
beacon = { git = "https://github.com/helium/proto", branch = "master" }
beacon = { git = "https://github.com/helium/proto", branch = "mj/do-device-type" }
solana-client = "1.18"
solana-sdk = "1.18"
solana-program = "1.18"
Expand Down
2 changes: 1 addition & 1 deletion mobile_verifier/src/heartbeats/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ impl ValidatedHeartbeat {
dec!(0),
None,
Some(coverage_object.meta),
proto::HeartbeatValidity::DataOnly,
proto::HeartbeatValidity::InvalidDeviceType,
)),
GatewayResolution::GatewayNotFound => Ok(Self::new(
heartbeat,
Expand Down
4 changes: 3 additions & 1 deletion mobile_verifier/src/speedtests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ where
.resolve_gateway_info(&pubkey)
.await?
{
Some(gw_info) if gw_info.is_data_only() => Ok(SpeedtestResult::SpeedtestDataOnly),
Some(gw_info) if gw_info.is_data_only() => {
Ok(SpeedtestResult::SpeedtestInvalidDeviceType)
}
Some(_) => Ok(SpeedtestResult::SpeedtestValid),
None => Ok(SpeedtestResult::SpeedtestGatewayNotFound),
}
Expand Down

0 comments on commit 3f24307

Please sign in to comment.