Browse Source

Don't bother counting share diff until it matches the client set diff and don't reproduce the diff change job id test already performed when determining diff in parse_submit

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

8
src/stratifier.c

@ -1450,12 +1450,10 @@ static void add_submit(ckpool_t *ckp, stratum_instance_t *client, int diff, bool
if (client->ssdc < 72 && tdiff < 240) if (client->ssdc < 72 && tdiff < 240)
return; return;
if (diff != client->diff) if (diff != client->diff) {
return; client->ssdc = 0;
/* We have the effect of a change pending */
if (client->diff_change_job_id >= next_blockid)
return; return;
}
/* Diff rate ratio */ /* Diff rate ratio */
dsps = client->dsps5 / bias; dsps = client->dsps5 / bias;

Loading…
Cancel
Save