mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-01 00:31:51 +00:00
We can't hit this path since the earlier check for stale work will prevent us ever finding work it can roll here.
This commit is contained in:
parent
17e5e17e88
commit
d39e5abfba
10
main.c
10
main.c
@ -2445,16 +2445,6 @@ static bool divide_work(struct timeval *now, struct work *work, uint32_t hash_di
|
|||||||
|
|
||||||
hash_inc = MAXTHREADS / hash_div * 2;
|
hash_inc = MAXTHREADS / hash_div * 2;
|
||||||
if ((uint64_t)work->blk.nonce + hash_inc < MAXTHREADS) {
|
if ((uint64_t)work->blk.nonce + hash_inc < MAXTHREADS) {
|
||||||
/* Don't keep handing it out if it's getting old, but try to
|
|
||||||
* roll it instead */
|
|
||||||
if ((now->tv_sec - work->tv_staged.tv_sec) > opt_scantime) {
|
|
||||||
if (!can_roll(work))
|
|
||||||
return false;
|
|
||||||
else {
|
|
||||||
roll_work(work);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* Okay we can divide it up */
|
/* Okay we can divide it up */
|
||||||
work->blk.nonce += hash_inc;
|
work->blk.nonce += hash_inc;
|
||||||
work->cloned = true;
|
work->cloned = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user