Fix to fixes

This commit is contained in:
vbuterin 2018-11-23 15:01:15 -05:00 committed by GitHub
parent ea31ff3cea
commit ee40888d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ The beacon chain fork choice rule is a hybrid that combines justification and fi
```python ```python
def lmd_ghost(store, start): def lmd_ghost(store, start):
validators = start.state.validators validators = start.state.validators
active_validators = [validators[i] for i in range(get_active_validator_indices(validators, start.slot))] active_validators = [validators[i] for i in get_active_validator_indices(validators, start.slot)]
attestation_targets = [get_latest_attestation_target(store, validator) for validator in active_validators] attestation_targets = [get_latest_attestation_target(store, validator) for validator in active_validators]
def get_vote_count(block): def get_vote_count(block):
return len([target for target in attestation_targets if get_ancestor(store, target, block.slot) == block]) return len([target for target in attestation_targets if get_ancestor(store, target, block.slot) == block])