Apply suggestions from code review

Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
Hsiao-Wei Wang 2020-04-28 10:46:13 +08:00
parent 40483b587b
commit c8a473ba24
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 1 additions and 2 deletions

View File

@ -497,12 +497,11 @@ def get_light_client_committee(beacon_state: BeaconState, epoch: Epoch) -> Seque
source_epoch -= LIGHT_CLIENT_COMMITTEE_PERIOD
active_validator_indices = get_active_validator_indices(beacon_state, source_epoch)
seed = get_seed(beacon_state, source_epoch, DOMAIN_LIGHT_CLIENT)
active_shard_count = get_active_shard_count(beacon_state)
return compute_committee(
indices=active_validator_indices,
seed=seed,
index=0,
count=active_shard_count,
count=get_active_shard_count(beacon_state),
)[:TARGET_COMMITTEE_SIZE]
```