From ea31ff3cea51830f8693770f69dab8b2ab49b45e Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 23 Nov 2018 16:05:30 +0000 Subject: [PATCH] Fix minor bug in `ghost_lmd` --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 820c20edc..ba92b601b 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -350,7 +350,7 @@ The beacon chain fork choice rule is a hybrid that combines justification and fi ```python def lmd_ghost(store, start): validators = start.state.validators - active_validators = [validators[i] for i in range(get_active_validators(validators, start.slot))] + active_validators = [validators[i] for i in range(get_active_validator_indices(validators, start.slot))] attestation_targets = [get_latest_attestation_target(store, validator) for validator in active_validators] def get_vote_count(block): return len([target for target in attestation_targets if get_ancestor(store, target, block.slot) == block])