From 79c99c4daf0ffce7fd416b45719973292a0b1d5c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 23 Sep 2014 09:18:28 +1000 Subject: [PATCH] Must check against upstream diff before submitting --- src/stratifier.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 1039736d..fcc2dcbe 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1987,7 +1987,8 @@ static json_t *parse_submit(stratum_instance_t *client, json_t *json_msg, } invalid = false; out_submit: - submit = wb->proxy; + if (wb->proxy && sdiff >= wdiff) + submit = true; out_unlock: ck_runlock(&workbase_lock);