From 917d40b4d31d4ed8597fa6520415f25d1cb0ac00 Mon Sep 17 00:00:00 2001 From: Anton Nashatyrev Date: Thu, 22 Apr 2021 20:38:21 +0300 Subject: [PATCH] Fix missing argument in get_active_shard_count() call --- specs/sharding/beacon-chain.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index 250f8b7ed..55a47a09e 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -668,9 +668,10 @@ def process_pending_headers(state: BeaconState) -> None: if get_current_epoch(state) == GENESIS_EPOCH: return - previous_epoch_start_slot = compute_start_slot_at_epoch(get_previous_epoch(state)) + previous_epoch = get_previous_epoch(state) + previous_epoch_start_slot = compute_start_slot_at_epoch(previous_epoch) for slot in range(previous_epoch_start_slot, previous_epoch_start_slot + SLOTS_PER_EPOCH): - for shard in range(get_active_shard_count(state)): + for shard in range(get_active_shard_count(state, previous_epoch)): # Pending headers for this (slot, shard) combo candidates = [ c for c in state.previous_epoch_pending_shard_headers