From b3a0a03f85c20a66df6984b64fbef3a17f2a9c55 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Sat, 12 Oct 2019 13:32:46 +0900 Subject: [PATCH] remove some legacy code --- specs/core/0_beacon-chain.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index a371df628..4bd839b88 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -311,7 +311,7 @@ class AttestationData(Container): # FFG vote source: Checkpoint target: Checkpoint - # Index -- Maybe remove + # Committee Index index: uint64 ``` @@ -866,14 +866,6 @@ def get_committee_count(state: BeaconState, epoch: Epoch) -> uint64: """ Return the number of committees at ``epoch``. """ - # Consider not hard coding but just return committees per slot for now - """ - committees_per_slot = max(1, min( - SHARD_COUNT // SLOTS_PER_EPOCH, - len(get_active_validator_indices(state, epoch)) // SLOTS_PER_EPOCH // TARGET_COMMITTEE_SIZE, - )) - return committees_per_slot * SLOTS_PER_EPOCH - """ return COMMITTEES_PER_SLOT ```