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

improve deterministic result - refactor #92

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

leomanza
Copy link
Collaborator

@leomanza leomanza commented Feb 18, 2025

Improve deterministic result for low votes count
https://github.com/orgs/MinaFoundation/projects/16/views/1?pane=issue&itemId=97249954&issue=MinaFoundation%7Cmina-on-chain-voting%7C86
Refactor, replace HashMap with BTreeMap

  • prevent different orders accross runs
  • ensures that when candidates have the same vote count, they are processed in a predictable order

@leomanza leomanza merged commit fe02e99 into main Feb 18, 2025
2 checks passed
@leomanza leomanza deleted the refactor_improve_deterministic_result branch February 18, 2025 23:37
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.

2 participants