From b4e98f1e6e7f40d75177e0d7e9029c36a902316b Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Wed, 23 Jan 2019 10:16:16 -0800 Subject: [PATCH] add doc note re spec reqs --- tests/test_validator.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_validator.nim b/tests/test_validator.nim index e10d1d6ce..90372fa0c 100644 --- a/tests/test_validator.nim +++ b/tests/test_validator.nim @@ -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