mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-26 01:05:15 +00: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:
parent
f932534763
commit
b92cd9be03
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user