remove some legacy code

This commit is contained in:
Danny Ryan 2019-10-12 13:32:46 +09:00
parent 667bf67d71
commit b3a0a03f85
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
1 changed files with 1 additions and 9 deletions

View File

@ -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
```