-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Ask a question about incrementProposerPriority func #3042
Comments
In this func IncrementProposerPriority: ``
} I sugguest we can add a variable incrCount in validatorSet, we increase the count each time, and execute shiftByAvgProposerPriority when it reaches 10, then reset it to 0 again. |
Proposer selection algorithm has undergone a few changes in the past releases. @james-ray do you still have questions? Have you looked at the new implementation and formal specification? |
@james-ray can we close this? |
Yes, I see the code there is completely different now. |
Before, we just let the mostest sub totalVotingPower. Now, we do one more step shiftByAvgProposerPriority. In this func, each validator sub avgPower. So I think the whole validatorSet sub twice totalPower.
Does that make sense? It will become negative and smaller and smaller.
Am I misunderstanding something? Please, anybody, tell me? Thanks!
The text was updated successfully, but these errors were encountered: