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

fix: Non-determinism in sorting finality providers in the voting power table #180

Merged
merged 6 commits into from
Oct 11, 2024

Conversation

gitferry
Copy link
Member

Non-determinism is caused due to not considering cases where both two items are jailed or non-timestamped, and when voting power is equal. This PR addressed this by determining the order in those cases by the increasing order of btc pk hex.

@gitferry gitferry marked this pull request as ready for review October 11, 2024 08:39
@gitferry gitferry requested a review from a team as a code owner October 11, 2024 08:39
@gitferry gitferry requested review from Lazar955, samricotta, SebastianElvis and KonradStaniec and removed request for a team October 11, 2024 08:39
Copy link
Member

@Lazar955 Lazar955 left a comment

Choose a reason for hiding this comment

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

Nice work!

@gitferry gitferry added consensus breaking change modifies `appHash` of the application backport release/v0.12.x labels Oct 11, 2024
@gitferry gitferry added the bug Something isn't working label Oct 11, 2024
@gitferry gitferry merged commit 58e13f0 into main Oct 11, 2024
22 checks passed
gitferry added a commit that referenced this pull request Oct 11, 2024
…r table (#180)

Non-determinism is caused due to not considering cases where both two
items are jailed or non-timestamped, and when voting power is equal.
This PR addressed this by determining the order in those cases by the
increasing order of btc pk hex.
gitferry added a commit that referenced this pull request Oct 11, 2024
…ting power table (#180) (#183)

This is a manual backport as the automatic process failed due to
conflicts in changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release/v0.12.x bug Something isn't working consensus breaking change modifies `appHash` of the application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants