1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Just insist on 1 lp staged work per mining thread on new block.

This commit is contained in:
Con Kolivas 2011-07-15 10:27:48 +10:00
parent a486c5b8cb
commit 8a40036974

5
main.c
View File

@ -1210,10 +1210,7 @@ static void flush_requests(bool longpoll)
/* Temporarily increase the staged count so that get_work thinks there
* is work available instead of making threads reuse existing work */
if (extra >= mining_threads)
inc_staged(mining_threads, true);
else
inc_staged(extra, true);
inc_staged(mining_threads, true);
for (i = 0; i < extra; i++) {
/* Queue a whole batch of new requests */