mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 16:05:00 -05:00
remove length check in compute shuffled index
This commit is contained in:
@@ -715,7 +715,6 @@ def compute_shuffled_index(index: ValidatorIndex, index_count: uint64, seed: Has
|
||||
Return the shuffled validator index corresponding to ``seed`` (and ``index_count``).
|
||||
"""
|
||||
assert index < index_count
|
||||
assert index_count <= VALIDATOR_REGISTRY_LIMIT
|
||||
|
||||
# Swap or not (https://link.springer.com/content/pdf/10.1007%2F978-3-642-32009-5_1.pdf)
|
||||
# See the 'generalized domain' algorithm on page 3
|
||||
|
||||
Reference in New Issue
Block a user