From d114c6c6b72d9e30a9c4892ba3d990396ab22a61 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Fri, 24 Jul 2020 22:29:30 -0700 Subject: [PATCH] Update comments for `get_committee_count_per_slot` (#6717) * Update comment * Merge branch 'master' into epochwise_committee_count_per_slot * Merge refs/heads/master into epochwise_committee_count_per_slot * Merge refs/heads/master into epochwise_committee_count_per_slot * Merge refs/heads/master into epochwise_committee_count_per_slot * Merge refs/heads/master into epochwise_committee_count_per_slot * Merge refs/heads/master into epochwise_committee_count_per_slot * Merge refs/heads/master into epochwise_committee_count_per_slot --- beacon-chain/core/helpers/committee.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/beacon-chain/core/helpers/committee.go b/beacon-chain/core/helpers/committee.go index 8b5f6471c..245551ad2 100644 --- a/beacon-chain/core/helpers/committee.go +++ b/beacon-chain/core/helpers/committee.go @@ -27,11 +27,10 @@ var committeeCache = cache.NewCommitteesCache() // // // Spec pseudocode definition: -// def get_committee_count_at_slot(state: BeaconState, slot: Slot) -> uint64: +// def get_committee_count_per_slot(state: BeaconState, epoch: Epoch) -> uint64: // """ -// Return the number of committees at ``slot``. +// Return the number of committees in each slot for the given ``epoch``. // """ -// epoch = compute_epoch_at_slot(slot) // return max(1, min( // MAX_COMMITTEES_PER_SLOT, // len(get_active_validator_indices(state, epoch)) // SLOTS_PER_EPOCH // TARGET_COMMITTEE_SIZE,