Skip to content

Commit fc0da24

Browse files
Add boosted_hex_device_type_v1 for HIP-109
The first iteration of HIP-109[1] adds the ability to boost by a device type. Pre-existing boosts will continue to boost _all_ device types. From the way the HIP reads, at some point, a hex may be boosted by the same provider for multiple device types. It was undecided wether that would be implemented as multiple device_types attached to a boosted hex, or multiple instances of a boosted hex. [1]: https://github.com/helium/HIP/blob/main/0109-hex-boosting-by-deployment.md
1 parent fdb83a3 commit fc0da24

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

src/hex_boosting.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ message boosted_hex_info_v1 {
2323
bytes boost_config_pubkey = 7;
2424

2525
uint32 version = 8;
26+
// The device type(s) this boost applies to.
27+
boosted_hex_device_type_v1 device_type = 9;
2628
}
2729

2830
message boosted_hex_update_v1 {
@@ -31,3 +33,11 @@ message boosted_hex_update_v1 {
3133
// Details of the updated hex
3234
boosted_hex_info_v1 update = 2;
3335
}
36+
37+
enum boosted_hex_device_type_v1 {
38+
all = 0;
39+
cbrs_indoor = 1;
40+
cbrs_outdoor = 2;
41+
wifi_indoor = 3;
42+
wifi_outdoor = 4;
43+
}

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ pub use prost::{DecodeError, EncodeError, Message};
99
#[cfg(feature = "services")]
1010
pub mod services {
1111
use crate::{
12-
BlockchainRegionParamsV1, BlockchainTokenTypeV1, BlockchainTxn, BoostedHexInfoV1,
13-
BoostedHexUpdateV1, DataRate, EntropyReportV1, GatewayStakingMode, MapperAttach, Region,
14-
RoutingAddress, ServiceProvider,
12+
BlockchainRegionParamsV1, BlockchainTokenTypeV1, BlockchainTxn, BoostedHexDeviceTypeV1,
13+
BoostedHexInfoV1, BoostedHexUpdateV1, DataRate, EntropyReportV1, GatewayStakingMode,
14+
MapperAttach, Region, RoutingAddress, ServiceProvider,
1515
};
1616

1717
pub mod iot_config {

0 commit comments

Comments
 (0)