From a0c30313fa5a8b48eb41aba7df10022ccb70b890 Mon Sep 17 00:00:00 2001 From: ericsson Date: Tue, 27 Apr 2021 17:07:56 +0300 Subject: [PATCH] convert `shard` to `CommitteeIndex` using `compute_committee_index_from_shard`, based on @djrtwo comment --- specs/sharding/beacon-chain.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index eb6959f47..7916c0364 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -683,7 +683,8 @@ def process_pending_headers(state: BeaconState) -> None: continue # The entire committee (and its balance) - full_committee = get_beacon_committee(state, slot, CommitteeIndex(shard)) + index = compute_committee_index_from_shard(state, slot, shard) + full_committee = get_beacon_committee(state, slot, index) # The set of voters who voted for each header (and their total balances) voting_sets = [ set(v for i, v in enumerate(full_committee) if c.votes[i])