indices_for_slot renaming - aligning to 01abccfdbb

This commit is contained in:
mratsim 2018-08-24 10:20:15 +02:00
parent 14bb9b6efd
commit e403e96144
1 changed files with 4 additions and 4 deletions

View File

@ -82,11 +82,11 @@ func get_indices_for_slot*(crystallized_state: CrystallizedState,
slot: int64): seq[ShardAndCommittee] {.noInit.}=
# TODO: Spec why is active_state an argument?
let ifh_start = crystallized_state.last_state_recalc - CYCLE_LENGTH
assert ifh_start <= slot
assert slot < ifh_start + CYCLE_LENGTH * 2
let start = crystallized_state.last_state_recalc - CYCLE_LENGTH
assert start <= slot
assert slot < start + CYCLE_LENGTH * 2
result = crystallized_state.indices_for_slots[int slot - ifh_start]
result = crystallized_state.indices_for_slots[int slot - start]
# TODO, slot is an int64 will be an issue on int32 arch.
# Clarify with EF if light clients will need the beacon chain