This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test vec generation and make it dynamic
This commit updates the validator shuffling generator and tries to make the test validator sets more life-like. constants.py: * Add FAR_FUTURE_EPOCH core_helpers.py: * Update the helpers needed for validator shuffling Remove enums.py: status flags are not used since 2018-12-28 tgen_shuffling.py: * Use a randomized probabilistic approach for generating configurably diverse validator sets; pre-FAR_FUTURE_EPOCH exit epochs truncated for readability * Change the YAML layout to include validator data needed for present-day shuffling yaml_objects.py: * Change ValidatorRecord name to Validator (as in spec); change fields for up-to-date shuffling * Remove ShardCommittee (not used for shuffling at all as of today) test_vector_shuffling.yml: * Regenerate
- Loading branch information
1 parent
a1c7e47
commit 51503b8
Showing
6 changed files
with
3,679 additions
and
2,198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
SHARD_COUNT = 2**10 # 1024 | ||
EPOCH_LENGTH = 2**6 # 64 slots, 6.4 minutes | ||
FAR_FUTURE_EPOCH = 2**64 - 1 # uint64 max | ||
SHARD_COUNT = 2**10 # 1024 | ||
TARGET_COMMITTEE_SIZE = 2**8 # 256 validators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.