Browse Source

Remove lower limit on suggest-diff since it is usually only set on initial client connect

master
Con Kolivas 10 years ago
parent
commit
d6955d3345
  1. 5
      src/stratifier.c

5
src/stratifier.c

@ -2541,10 +2541,7 @@ static void suggest_diff(stratum_instance_t *client, const char *method, json_t
client->suggest_diff = sdiff; client->suggest_diff = sdiff;
if (client->diff == sdiff) if (client->diff == sdiff)
return; return;
if (sdiff < client->diff * 2 / 3) client->diff = sdiff;
client->diff = client->diff * 2 / 3;
else
client->diff = sdiff;
stratum_send_diff(client); stratum_send_diff(client);
} }

Loading…
Cancel
Save