add doc note re spec reqs

This commit is contained in:
Dustin Brody 2019-01-23 10:16:16 -08:00
parent 3877ef263c
commit b4e98f1e6e
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ import
func sumCommittees(v: openArray[seq[Uint24]], reqCommitteeLen: int): int =
for x in v:
## This only holds when num_validators is divisible by
## EPOCH_LENGTH * get_committee_count_per_slot(len(validators))
## as, in general, not all committees can be equally sized.
assert x.len == reqCommitteeLen
inc result, x.len