From 683fdec8f251ae1e0df203a628df75183f517572 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 16 Sep 2014 12:35:28 +1000 Subject: [PATCH] Reset proxy diff to startdiff on each new subscription --- src/stratifier.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 67863df0..bc350efa 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -744,8 +744,7 @@ static bool update_subscribe(ckpool_t *ckp) free(buf); ck_wlock(&workbase_lock); - if (!proxy_base.diff) - proxy_base.diff = 1; + proxy_base.diff = ckp->startdiff; /* Length is checked by generator */ strcpy(proxy_base.enonce1, json_string_value(json_object_get(val, "enonce1"))); proxy_base.enonce1constlen = strlen(proxy_base.enonce1) / 2;