Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implementing configuration for ballots (#7)
* feat: moved leader computation to party, added ballot number to seed * feat: add configuration of timebounds for events, async * feat: use hash-based leader election instead of rand * fix: resolved events sending * feat: added status checks to update_state * feat: add timeout handling for latency between parties * feat: add opportunity to configure prior to launch timeout * feat: changed logic for leader election * feat: refactor leader election components * Rewriting the hash_to_range function (#8) * 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]> --------- Co-authored-by: Oleg Fomenko <[email protected]>
- Loading branch information