|
|
@ -2541,9 +2541,6 @@ 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 = client->diff * 2 / 3; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
client->diff = sdiff; |
|
|
|
client->diff = sdiff; |
|
|
|
stratum_send_diff(client); |
|
|
|
stratum_send_diff(client); |
|
|
|
} |
|
|
|
} |
|
|
|