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

[WIP] scale power in the range 0-0xffff #118

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Stebalien
Copy link
Member

  1. Scale power before performing power calculations.
  2. Consider an SP "ineligible" if they have less than 1/0xffff of the total power.

I plan on cleaning up the code (e.g., pre-computing the scaled power) before merging, but I wanted some quick feedback before I proceed.

fixes #33

1. Scale power before performing power calculations.
2. Consider an SP "ineligible" if they have less than 1/0xffff of the
total power.
@Stebalien
Copy link
Member Author

Feedback from call: gpbft should use scaled powers everywhere except the commitment. That means u16 everywhere.

@Stebalien Stebalien self-assigned this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settle representation of voting power, truncation of native power
1 participant