From f4f6d53db9daca5567feb3d254eaefbe7a3ebad4 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 22 Sep 2014 22:03:46 +1000 Subject: [PATCH] Submit stale shares in proxy mode --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index d0e8b375..0c287eeb 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1962,7 +1962,7 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg, if (id < blockchange_id) { err = SE_STALE; json_set_string(json_msg, "reject-reason", SHARE_ERR(err)); - goto out_unlock; + goto out_submit; } if ((int)strlen(nonce2) < len) { err = SE_INVALID_NONCE2; @@ -1976,6 +1976,7 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg, goto out_unlock; } invalid = false; +out_submit: if (wb->proxy && sdiff >= wdiff) submit = true; out_unlock: