Skip to content

Commit

Permalink
Set initial tick for new epoch.
Browse files Browse the repository at this point in the history
The initialTick is set in endEpoch(), which is called by the tickProcessor() before system.tick++.
  • Loading branch information
philippwerner committed Feb 14, 2024
1 parent 136d01a commit 13f1eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qubic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2717,7 +2717,7 @@ static void endEpoch()
assetsEndEpoch(reorgBuffer);

system.epoch++;
system.initialTick = system.tick;
system.initialTick = system.tick + 1;

mainAuxStatus = ((mainAuxStatus & 1) << 1) | ((mainAuxStatus & 2) >> 1);
}
Expand Down

0 comments on commit 13f1eaa

Please sign in to comment.