Browse Source

We can't hit this path since the earlier check for stale work will prevent us ever finding work it can roll here.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
d39e5abfba
  1. 10
      main.c

10
main.c

@ -2445,16 +2445,6 @@ static bool divide_work(struct timeval *now, struct work *work, uint32_t hash_di @@ -2445,16 +2445,6 @@ static bool divide_work(struct timeval *now, struct work *work, uint32_t hash_di
hash_inc = MAXTHREADS / hash_div * 2;
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 */
work->blk.nonce += hash_inc;
work->cloned = true;

Loading…
Cancel
Save