Skip to content

Commit

Permalink
Reset more system members for new epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwerner committed Feb 14, 2024
1 parent d035f9a commit 50c9195
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qubic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2512,8 +2512,12 @@ static void beginEpoch1of2()
solutionThreshold[system.epoch] = SOLUTION_THRESHOLD_DEFAULT;
}

system.latestOperatorNonce = 0;
bs->SetMem(system.proposals, sizeof(system.proposals), 0);
bs->SetMem(system.ballots, sizeof(system.ballots), 0);
system.numberOfSolutions = 0;
bs->SetMem(system.solutions, sizeof(system.solutions), 0);
bs->SetMem(system.futureComputors, sizeof(system.futureComputors), 0);

#if LOG_QU_TRANSFERS && LOG_QU_TRANSFERS_TRACK_TRANSFER_ID
CurrentTransferId = 0;
Expand Down

0 comments on commit 50c9195

Please sign in to comment.