From 2787fea5feb8d5977ebee7c578c5d835cff6dc21 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 26 Apr 2019 03:50:27 -0700 Subject: [PATCH] Update 0_fork-choice.md (#998) Fix attribute access; this field has been renamed in the latest version of the phase 0 spec. --- specs/core/0_fork-choice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_fork-choice.md b/specs/core/0_fork-choice.md index 6fdb97067..0b19f1559 100644 --- a/specs/core/0_fork-choice.md +++ b/specs/core/0_fork-choice.md @@ -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 )