state_sim: fix epoch

This commit is contained in:
Jacek Sieka 2019-03-22 22:52:45 -06:00
parent 9f55b4646c
commit 0af0773197
No known key found for this signature in database
GPG Key ID: 6299FEB3EB6FA465
1 changed files with 2 additions and 1 deletions

View File

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