Browse Source

Reset proxy diff to startdiff on each new subscription

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

3
src/stratifier.c

@ -744,8 +744,7 @@ static bool update_subscribe(ckpool_t *ckp)
free(buf); free(buf);
ck_wlock(&workbase_lock); ck_wlock(&workbase_lock);
if (!proxy_base.diff) proxy_base.diff = ckp->startdiff;
proxy_base.diff = 1;
/* Length is checked by generator */ /* Length is checked by generator */
strcpy(proxy_base.enonce1, json_string_value(json_object_get(val, "enonce1"))); strcpy(proxy_base.enonce1, json_string_value(json_object_get(val, "enonce1")));
proxy_base.enonce1constlen = strlen(proxy_base.enonce1) / 2; proxy_base.enonce1constlen = strlen(proxy_base.enonce1) / 2;

Loading…
Cancel
Save