minor var fix (#136)

This commit is contained in:
Danny Ryan 2018-11-16 08:23:28 +09:00 committed by GitHub
parent 0f6ec916c7
commit ac207e4cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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]