diff --git a/beacon_chain/beacon_node.nim b/beacon_chain/beacon_node.nim index 77b573dd6..c3a9dce73 100644 --- a/beacon_chain/beacon_node.nim +++ b/beacon_chain/beacon_node.nim @@ -547,20 +547,28 @@ proc handleAttestations(node: BeaconNode, head: BlockRef, slot: Slot) = let epoch = compute_epoch_at_slot(slot) committees_per_slot = + # get_committee_count_at_slot(state, slot) get_committee_count_at_slot(state, epoch.compute_start_slot_at_epoch) offset = committees_per_slot * (slot mod SLOTS_PER_EPOCH) slot_start_shard = (get_start_shard(state, epoch) + offset) mod SHARD_COUNT - for i in 0'u64..