From 417dda832601595aa8c066734a32bc319dc1d584 Mon Sep 17 00:00:00 2001 From: protolambda Date: Tue, 1 Jun 2021 22:38:36 +0200 Subject: [PATCH] fix committee index assertion --- specs/sharding/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index 84ce94867..ce0dbd0f6 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -480,7 +480,7 @@ def compute_committee_index_from_shard(state: BeaconState, slot: Slot, shard: Sh epoch = compute_epoch_at_slot(slot) active_shards = get_active_shard_count(state, epoch) index = CommitteeIndex((active_shards + shard - get_start_shard(state, slot)) % active_shards) - assert index >= get_committee_count_per_slot(state, epoch) + assert index < get_committee_count_per_slot(state, epoch) return index ```