Update 0_fork-choice.md (#998)

Fix attribute access; this field has been renamed in the latest version of the phase 0 spec.
This commit is contained in:
Alex Stokes 2019-04-26 03:50:27 -07:00 committed by Justin
parent 1845088249
commit 2787fea5fe
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def lmd_ghost(store: Store, start_state: BeaconState, start_block: BeaconBlock)
# made for optimized implementations that precompute and save data
def get_vote_count(block: BeaconBlock) -> int:
return sum(
start_state.validator_registry[validator_index].high_balance
start_state.validator_registry[validator_index].effective_balance
for validator_index, target in attestation_targets
if get_ancestor(store, target, block.slot) == block
)