|
|
@ -687,8 +687,9 @@ static void add_submit(stratum_instance_t *client, int diff) |
|
|
|
|
|
|
|
|
|
|
|
/* Diff rate product */ |
|
|
|
/* Diff rate product */ |
|
|
|
drp = dsps / (double)client->diff; |
|
|
|
drp = dsps / (double)client->diff; |
|
|
|
/* Optimal rate product is 3.33, allow some hysteresis */ |
|
|
|
/* Optimal rate product is 3.33, allow some hysteresis, clamping more
|
|
|
|
if (drp > 2.22 && drp < 4.44) |
|
|
|
* aggressively high share rates than low. */ |
|
|
|
|
|
|
|
if (drp > 3 && drp < 4) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
optimal = round(dsps * 3.33); |
|
|
|
optimal = round(dsps * 3.33); |
|
|
|