state_sim: fix epoch
This commit is contained in:
parent
9f55b4646c
commit
0af0773197
|
@ -83,7 +83,8 @@ cli do(slots = 1945,
|
||||||
attestations[attestations_idx] = @[]
|
attestations[attestations_idx] = @[]
|
||||||
|
|
||||||
let t =
|
let t =
|
||||||
if (state.slot + 2) mod SLOTS_PER_EPOCH == 0: tEpoch
|
if (state.slot > GENESIS_SLOT and
|
||||||
|
(state.slot + 1) mod SLOTS_PER_EPOCH == 0): tEpoch
|
||||||
else: tBlock
|
else: tBlock
|
||||||
|
|
||||||
withTimer(timers[t]):
|
withTimer(timers[t]):
|
||||||
|
|
Loading…
Reference in New Issue