mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
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
This commit is contained in:
parent
01f3a6e6db
commit
d114c6c6b7
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user