Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fields to heartbeat and mobile_reward_share files to help understand how rewards are calculated #378

Merged
merged 8 commits into from
Jan 16, 2024

Conversation

bbalser
Copy link
Contributor

@bbalser bbalser commented Nov 16, 2023

In troubleshooting various issues, I realized how valuable having all the multipliers be recorded in the mobile_verifier outputs would be.

Copy link
Member

@madninja madninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it since it captures changes over time to these values.. Couple of comments:

  1. Floats are pretty evil. Can we use a fixed point?
  2. What happens with older data where these fields are not present? Proto semenatics would have these at 0. Is that ok?

@bbalser
Copy link
Contributor Author

bbalser commented Nov 19, 2023

I like it since it captures changes over time to these values.. Couple of comments:

  1. Floats are pretty evil. Can we use a fixed point?
  2. What happens with older data where these fields are not present? Proto semenatics would have these at 0. Is that ok?
  1. Good call, will change those to fixed point
  2. Fair point, should we just make version 2 of these messages to avoid that behaviour or is there something else you had in mind?

@madninja
Copy link
Member

  1. Fair point, should we just make version 2 of these messages to avoid that behaviour or is there something else you had in mind?

Not sure that'll help since you would have to decide what to do with the v1 protos anyway? Are the default 0 not used otherwise? If they're not "normal" values that may be enough to tell the two apart?

@maplant maplant marked this pull request as ready for review January 16, 2024 18:06
@maplant maplant merged commit e4b935e into master Jan 16, 2024
7 checks passed
@maplant maplant deleted the bbalser/mobile-reward-multipliers branch January 16, 2024 18:14
@riobah
Copy link
Contributor

riobah commented Jan 18, 2024

  1. Is there a planned release date for these changes?
  2. the comments in code imply some equation likereward_multiplier = heartbeat_multiplier * location_trust_score_multiplier. In which message is this heartbeat_multiplier?
  3. when reward_multiplier is deprecated, does it mean that it will not be maintained and come as 0 immediately?
  4. To give full context of the reward calculations, do we need some heartbeat multiplier in the radio_reward message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants