Skip to content

Commit

Permalink
Add fields to heartbeat and mobile_reward_share files to help underst…
Browse files Browse the repository at this point in the history
…and how rewards are calculated
  • Loading branch information
bbalser committed Nov 16, 2023
1 parent 9fc5713 commit 875bf34
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/service/poc_mobile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ message heartbeat {
// applicable to cell heartbeats only
string cbsd_id = 1;
bytes pub_key = 2;
// this value is the heartbeat_multiplier * location_trust_score_multiplier
float reward_multiplier = 3;
uint64 timestamp = 4;
cell_type cell_type = 5;
Expand All @@ -227,6 +228,10 @@ message heartbeat {
// Distance in meters to the asserted location of the gateway_reward
// at the time of heartbeat verification
uint64 distance_to_asserted = 11;
// based on cell_type of radio
float heartbeat_multiplier = 12;
// only used for wifi indoor radios, all others should have a value of 1.0
float location_trust_score_multiplier = 13;
}

enum heartbeat_validity {
Expand Down Expand Up @@ -321,13 +326,23 @@ message radio_reward {
uint64 seniority_timestamp = 6;
// UUID of the coverage object used to reward this radio
bytes coverage_object = 7;
// based on number of heartbeats received and cell_type
float heartbeat_multiplier = 8;
// only used for wifi indoor radios, all others should have a value of 1.0
float location_trust_score_multiplier = 9;
// based on speedtest averages of speedtests during 48 hour period from end of rewardable period
float speedtest_multiplier = 10;
}

message gateway_reward {
/// Public key of the hotspot
bytes hotspot_key = 1;
/// Amount awarded for dc transfer
uint64 dc_transfer_reward = 2;
/// count of rewardable bytes transfered
uint64 rewardable_bytes = 3;
/// Price of MOBILE used when calculating rewards
uint64 price = 4;
}

message subscriber_reward {
Expand Down

0 comments on commit 875bf34

Please sign in to comment.