-
Notifications
You must be signed in to change notification settings - Fork 231
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
Shuffling tests #1
Comments
Renaming to shuffling tests as the specs changed significantly and cutoffs are now just shuffling. See also comments in #20. The most comprehensive shuffling tests are by Sigp: https://github.com/sigp/lighthouse/blob/ba548e49a52687a655c61b443b6835d79c6d4236/beacon_chain/validator_shuffling/src/shuffle.rs |
Also a topic for reference on the current shuffling algorithm design: ethereum/beacon_chain#57 |
As of today it seems like besides us no one is in line with the specs, which states: Specs
|
The new shuffling approach should probably, though tests remain always useful, live in a new issue. Closing. |
* Fix firstSuccess() template missing timeouts. * Fix validator race condition. Fix logs to be compatible with beacon_node logs. Add CatchableError handlers to avoid crashes. Move some logs from Notice to Debug level. Fix some [unused] warnings. * Fix block proposal issue for slots in the past and from the future. * Change sent to published. * Address review comments #1.
The cutoffs function description is the followinf:
The schema:
A full Python implementation:
The Python implementation does not split like in the example
The example may be a simplification that shows the spirit of the spec but no sharding occurs because 16 validators is too small.
Nim implementation:
https://github.com/status-im/nim-beacon-chain/blob/585072ae154e3d10276b51397e707628a401c096/beacon_chain/private/helpers.nim#L35-L79
The text was updated successfully, but these errors were encountered: