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)
return;
if (diff != client->diff)
return;
/* We have the effect of a change pending */
if (client->diff_change_job_id >= next_blockid)
if (diff != client->diff) {
client->ssdc = 0;
return;
}
/* Diff rate ratio */
dsps = client->dsps5 / bias;

Loading…
Cancel
Save