indices_for_slot renaming - aligning to 01abccfdbb
This commit is contained in:
parent
14bb9b6efd
commit
e403e96144
|
@ -82,11 +82,11 @@ func get_indices_for_slot*(crystallized_state: CrystallizedState,
|
||||||
slot: int64): seq[ShardAndCommittee] {.noInit.}=
|
slot: int64): seq[ShardAndCommittee] {.noInit.}=
|
||||||
# TODO: Spec why is active_state an argument?
|
# TODO: Spec why is active_state an argument?
|
||||||
|
|
||||||
let ifh_start = crystallized_state.last_state_recalc - CYCLE_LENGTH
|
let start = crystallized_state.last_state_recalc - CYCLE_LENGTH
|
||||||
assert ifh_start <= slot
|
assert start <= slot
|
||||||
assert slot < ifh_start + CYCLE_LENGTH * 2
|
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.
|
# TODO, slot is an int64 will be an issue on int32 arch.
|
||||||
# Clarify with EF if light clients will need the beacon chain
|
# Clarify with EF if light clients will need the beacon chain
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue