From cd7c7228c908f6e271b7d937eb5bad5f3f165ffb Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Sun, 3 Mar 2019 03:59:12 -0600 Subject: [PATCH] Update specs/core/0_beacon-chain.md Co-Authored-By: vbuterin --- specs/core/0_beacon-chain.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 5b3af73bf..c10f1d6f5 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -2053,7 +2053,9 @@ def compute_inactivity_leak_deltas(state: BeaconState) -> List[Gwei]: ```python def get_crosslink_deltas(state: BeaconState) -> List[Gwei]: deltas = [0 for index in range(len(state.validator_registry))] - for slot in range(get_epoch_start_slot(previous_epoch), get_epoch_start_slot(current_epoch)): + previous_epoch_start_slot = get_epoch_start_slot(get_previous_epoch(state)) + current_epoch_start_slot = get_epoch_start_slot(get_current_epoch(state)) + for slot in range(previous_epoch_start_slot, current_epoch_start_slot): for crosslink_committee, shard in get_crosslink_committees_at_slot(state, slot): winning_root, participants = get_winning_root_and_participants(state, shard) participating_balance = get_total_balance(state, participants)