Browse Source

Accept the lower of new and old diffs until the next update

master
Con Kolivas 11 years ago
parent
commit
7acd1b0c10
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -921,7 +921,8 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg,
out_unlock: out_unlock:
ck_runlock(&workbase_lock); ck_runlock(&workbase_lock);
if (id < client->diff_change_job_id) /* Accept the lower of new and old diffs until the next update */
if (id < client->diff_change_job_id && client->old_diff < client->diff)
diff = client->old_diff; diff = client->old_diff;
else else
diff = client->diff; diff = client->diff;

Loading…
Cancel
Save