-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
validator: add voting power #7392
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
6a2b0c5
to
89df47c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Emma!
I assume we also want to rename ValidatorSet.quorum_stake_threshold
to something like ValidatorSet.quorum_threshold
or ValidatorSet.voting_power_threshold
. Will that require any changes on the Rust side?
Good catch. Will rename. No changes required on the Rust side since we don't use this number directly on the Rust side. |
096448b
to
3d3f985
Compare
@@ -568,25 +585,17 @@ module sui::validator_set { | |||
fun calculate_total_stake_and_quorum_threshold(validators: &vector<Validator>): (u64, u64, u64) { | |||
let validator_state = 0; | |||
let delegate_stake = 0; | |||
let total_voting_power = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function no longer makes sense in that it's mixing the sum of stake and voting power threshold together, that's strange.
We should separate computations based on stake and computations based on voting power
3d3f985
to
a2ace7c
Compare
a2ace7c
to
70fb738
Compare
No description provided.