From b92cd9be03b16db86caf5c9498df8a5c3bf5d848 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sat, 16 Feb 2019 17:55:27 +1100 Subject: [PATCH] Add fix to `get_shuffling` Ensures it does not try to shuffle out of range of the `active_validator_indices` list. --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index ce13c6105..80bb12635 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -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