mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 22:54:54 -05:00
Add fix to get_shuffling
Ensures it does not try to shuffle out of range of the `active_validator_indices` list.
This commit is contained in:
@@ -807,7 +807,7 @@ def get_shuffling(seed: Bytes32,
|
||||
# Shuffle
|
||||
shuffled_active_validator_indices = [
|
||||
active_validator_indices[get_permuted_index(i, len(active_validator_indices), seed)]
|
||||
for i in active_validator_indices
|
||||
for i in range(len(active_validator_indices))
|
||||
]
|
||||
|
||||
# Split the shuffled list into committees_per_epoch pieces
|
||||
|
||||
Reference in New Issue
Block a user