|
|
@ -1913,7 +1913,8 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg, |
|
|
|
json_set_string(json_msg, "reject-reason", SHARE_ERR(err)); |
|
|
|
json_set_string(json_msg, "reject-reason", SHARE_ERR(err)); |
|
|
|
strcpy(idstring, job_id); |
|
|
|
strcpy(idstring, job_id); |
|
|
|
ASPRINTF(&fname, "%s.sharelog", current_workbase->logdir); |
|
|
|
ASPRINTF(&fname, "%s.sharelog", current_workbase->logdir); |
|
|
|
goto out_unlock; |
|
|
|
ck_runlock(&workbase_lock); |
|
|
|
|
|
|
|
goto out; |
|
|
|
} |
|
|
|
} |
|
|
|
share = true; |
|
|
|
share = true; |
|
|
|
wdiff = wb->diff; |
|
|
|
wdiff = wb->diff; |
|
|
@ -1949,9 +1950,6 @@ 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 (unlikely(!share)) |
|
|
|
|
|
|
|
goto out; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (submit) |
|
|
|
if (submit) |
|
|
|
submit_share(client, id, nonce2, ntime, nonce, json_integer_value(json_object_get(json_msg, "id"))); |
|
|
|
submit_share(client, id, nonce2, ntime, nonce, json_integer_value(json_object_get(json_msg, "id"))); |
|
|
|
|
|
|
|
|
|
|
|