Browse Source

Submit stale shares in proxy mode

master
Con Kolivas 10 years ago
parent
commit
f4f6d53db9
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -1962,7 +1962,7 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg,
if (id < blockchange_id) { if (id < blockchange_id) {
err = SE_STALE; err = SE_STALE;
json_set_string(json_msg, "reject-reason", SHARE_ERR(err)); json_set_string(json_msg, "reject-reason", SHARE_ERR(err));
goto out_unlock; goto out_submit;
} }
if ((int)strlen(nonce2) < len) { if ((int)strlen(nonce2) < len) {
err = SE_INVALID_NONCE2; err = SE_INVALID_NONCE2;
@ -1976,6 +1976,7 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg,
goto out_unlock; goto out_unlock;
} }
invalid = false; invalid = false;
out_submit:
if (wb->proxy && sdiff >= wdiff) if (wb->proxy && sdiff >= wdiff)
submit = true; submit = true;
out_unlock: out_unlock:

Loading…
Cancel
Save