From ac207e4cc8f72550944884219181225f7c56fc52 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Fri, 16 Nov 2018 08:23:28 +0900 Subject: [PATCH] minor var fix (#136) --- 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 52d6f896c..273bf75f5 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -463,7 +463,7 @@ We also define two functions for retrieving data from the state: ```python def get_shards_and_committees_for_slot(state: BeaconState, slot: int) -> List[ShardAndCommittee]: - earliest_slot_in_array = state.last_state_recalculation - CYCLE_LENGTH + earliest_slot_in_array = state.last_state_recalculation_slot - CYCLE_LENGTH assert earliest_slot_in_array <= slot < earliest_slot_in_array + CYCLE_LENGTH * 2 return state.shard_and_committee_for_slots[slot - earliest_slot_in_array]