Browse Source

Clamp suggest diff to pool mindiff directive

master
Con Kolivas 10 years ago
parent
commit
ad4e959a80
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -2583,6 +2583,9 @@ 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->ckp->mindiff)
client->diff = client->ckp->mindiff;
else
client->diff = sdiff; client->diff = sdiff;
stratum_send_diff(client); stratum_send_diff(client);
} }

Loading…
Cancel
Save