From 6814efac2e8934f15409bbf976aec671d1356c62 Mon Sep 17 00:00:00 2001 From: ericsson Date: Sat, 24 Apr 2021 17:32:59 +0300 Subject: [PATCH] fix typo: `state` missed in `get_committee_count_per_slot` call --- 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 8ae66b5e6..f577ab1df 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -752,7 +752,7 @@ def reset_pending_headers(state: BeaconState) -> None: next_epoch = get_current_epoch(state) + 1 next_epoch_start_slot = compute_start_slot_at_epoch(next_epoch) for slot in range(next_epoch_start_slot, next_epoch_start_slot + SLOTS_IN_EPOCH): - for index in range(get_committee_count_per_slot(next_epoch)): + for index in range(get_committee_count_per_slot(state, next_epoch)): shard = compute_shard_from_committee_index(state, slot, index) committee_length = len(get_beacon_committee(state, slot, shard)) state.current_epoch_pending_shard_headers.append(PendingShardHeader(