Browse Source

There is no need to place the clamp on lowering diff with suggest_diff since it is predomoninantly used at miner startup and we can rapidly adapt should it be too low anyway

master
Con Kolivas 10 years ago
parent
commit
a33dfd066a
  1. 7
      src/stratifier.c

7
src/stratifier.c

@ -2420,12 +2420,7 @@ static void set_worker_mindiff(ckpool_t *ckp, const char *workername, int mindif
continue; continue;
if (mindiff == client->diff) if (mindiff == client->diff)
continue; continue;
/* If we're going down in diff, do not allow the next diff to client->diff = mindiff;
* be drastically lower than the current diff */
if (mindiff < client->diff * 2 / 3)
client->diff = client->diff * 2 / 3;
else
client->diff = mindiff;
stratum_send_diff(client); stratum_send_diff(client);
} }
ck_runlock(&instance_lock); ck_runlock(&instance_lock);

Loading…
Cancel
Save