From 2b60c9cf90f989a73973bea8db00b88f532c28af Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 3 Sep 2019 22:45:13 +0100 Subject: [PATCH] Update 1_shard-data-chains.md --- specs/core/1_shard-data-chains.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/core/1_shard-data-chains.md b/specs/core/1_shard-data-chains.md index 28585d02b..61c5c43aa 100644 --- a/specs/core/1_shard-data-chains.md +++ b/specs/core/1_shard-data-chains.md @@ -195,8 +195,7 @@ def get_shard_committee(beacon_state: BeaconState, shard: Shard, epoch: Epoch) - # Every epoch cycle out validators from the older committee and cycle in validators from the newer committee older_subcommittee = [i for i in older_committee if i % EPOCHS_PER_SHARD_PERIOD > epoch % EPOCHS_PER_SHARD_PERIOD] newer_subcommittee = [i for i in newer_committee if i % EPOCHS_PER_SHARD_PERIOD <= epoch % EPOCHS_PER_SHARD_PERIOD] - # Deduplicate and sort indices - return sorted(set(older_subcommittee + newer_subcommittee)) + return older_subcommittee + newer_subcommittee ``` #### `get_shard_proposer_index`