@@ -161,7 +161,7 @@ void SessionFastAlgorithm(tcp::socket& sock) {
161
161
fast_storage = new FastStorage ((FastAlgorithmCallback*)weso);
162
162
}
163
163
std::atomic<bool > stopped (false );
164
- std::thread vdf_worker (repeated_square, f, std::ref (D), std::ref (L), weso, fast_storage, std::ref (stopped));
164
+ std::thread vdf_worker (repeated_square, 0 , f, std::ref (D), std::ref (L), weso, fast_storage, std::ref (stopped));
165
165
ProverManager pm (D, (FastAlgorithmCallback*)weso, fast_storage, segments, thread_count);
166
166
pm.start ();
167
167
@@ -211,7 +211,7 @@ void SessionOneWeso(tcp::socket& sock) {
211
211
std::atomic<bool > stopped (false );
212
212
WesolowskiCallback* weso = new OneWesolowskiCallback (D, f, iter);
213
213
FastStorage* fast_storage = NULL ;
214
- std::thread vdf_worker (repeated_square, f, std::ref (D), std::ref (L), weso, fast_storage, std::ref (stopped));
214
+ std::thread vdf_worker (repeated_square, iter, f, std::ref (D), std::ref (L), weso, fast_storage, std::ref (stopped));
215
215
std::thread th_prover (CreateAndWriteProofOneWeso, iter, std::ref (D), f, (OneWesolowskiCallback*)weso, std::ref (stopped), std::ref (sock));
216
216
iter = ReadIteration (sock);
217
217
while (iter != 0 ) {
@@ -247,7 +247,7 @@ void SessionTwoWeso(tcp::socket& sock) {
247
247
std::set<std::pair<uint64_t , uint64_t > > seen_iterations;
248
248
WesolowskiCallback* weso = new TwoWesolowskiCallback (D, f);
249
249
FastStorage* fast_storage = NULL ;
250
- std::thread vdf_worker (repeated_square, f, std::ref (D), std::ref (L), weso, fast_storage, std::ref (stopped));
250
+ std::thread vdf_worker (repeated_square, 0 , f, std::ref (D), std::ref (L), weso, fast_storage, std::ref (stopped));
251
251
252
252
while (!stopped) {
253
253
uint64_t iters = ReadIteration (sock);
0 commit comments