From 815e597a4967c100337774c7dd5c416ffd40d553 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Wed, 26 Sep 2018 12:43:31 -0500 Subject: [PATCH] [bound-committee-per-slot] enforce maximum committees per slot --- specs/casper_sharding_v2.1.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specs/casper_sharding_v2.1.md b/specs/casper_sharding_v2.1.md index 100073300..0c3b70f40 100644 --- a/specs/casper_sharding_v2.1.md +++ b/specs/casper_sharding_v2.1.md @@ -1,5 +1,7 @@ # Casper+Sharding chain v2.1 +###### tags: `spec`, `eth2.0`, `casper`, `sharding` + ## WORK IN PROGRESS!!!!!!! This is the work-in-progress document describing the specification for the Casper+Sharding (shasper) chain, version 2.1. @@ -256,7 +258,7 @@ Now, our combined helper method: def get_new_shuffling(seed, validators, dynasty, crosslinking_start_shard): avs = get_active_validator_indices(validators, dynasty) if len(avs) >= CYCLE_LENGTH * MIN_COMMITTEE_SIZE: - committees_per_slot = len(avs) // CYCLE_LENGTH // (MIN_COMMITTEE_SIZE * 2) + 1 + committees_per_slot = min(len(avs) // CYCLE_LENGTH // (MIN_COMMITTEE_SIZE * 2) + 1, SHARD_COUNT // CYCLE_LENGTH) slots_per_committee = 1 else: committees_per_slot = 1