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

feat: implementing configuration for ballots #7

Merged
merged 10 commits into from
Aug 29, 2024
Merged

Conversation

NikitaMasych
Copy link
Member

@NikitaMasych NikitaMasych commented Aug 16, 2024

What?

This PR contains additions to config and is closing end-to-end functionality of launch for ballot.

Key changes:

  1. Add timeouts to work with scheduled consensus events (launch 1a, launch 1b etc.)
  2. Add test to check this functionality.
  3. Add ballot number to leader election seed.

@NikitaMasych NikitaMasych added the enhancement New feature or request label Aug 16, 2024
@NikitaMasych NikitaMasych self-assigned this Aug 16, 2024
@NikitaMasych NikitaMasych linked an issue Aug 16, 2024 that may be closed by this pull request
@NikitaMasych NikitaMasych marked this pull request as draft August 16, 2024 16:00
@NikitaMasych NikitaMasych marked this pull request as ready for review August 19, 2024 13:14
Copy link
Collaborator

@xoloki xoloki left a comment

Choose a reason for hiding this comment

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

Lgtm

NikitaMasych and others added 2 commits August 26, 2024 17:07
* rewriting the hash_to_range function to achieve better uniform distribution.

 Now it uses seeded random based on ChaCha12Rng instead of DefaultHash as before. Also, it fixes distribution in range by executing selection several times to achieve uniform distribution when range != 2^k

* Adding comments

* fix: resolved linter issues/failing tests

---------

Co-authored-by: Nikita Masych <[email protected]>
@NikitaMasych NikitaMasych merged commit 4322a91 into main Aug 29, 2024
11 checks passed
@NikitaMasych NikitaMasych deleted the epic/config branch August 29, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Implementing configuration for ballots
4 participants