Browse Source

Workbases always exists by the time we reach the point we can set the enonce2varlen

master
Con Kolivas 10 years ago
parent
commit
d62483fbd2
  1. 4
      src/stratifier.c

4
src/stratifier.c

@ -2241,11 +2241,9 @@ static json_t *parse_subscribe(stratum_instance_t *client, const int64_t client_
client->id, client->enonce1_64, client->enonce1); client->id, client->enonce1_64, client->enonce1);
} }
/* Workbases will exist if sdata->current_workbase is not NULL */
ck_rlock(&sdata->workbase_lock); ck_rlock(&sdata->workbase_lock);
if (likely(sdata->workbases))
n2len = sdata->workbases->enonce2varlen; n2len = sdata->workbases->enonce2varlen;
else
n2len = 8;
JSON_CPACK(ret, "[[[s,s]],s,i]", "mining.notify", client->enonce1, client->enonce1, JSON_CPACK(ret, "[[[s,s]],s,i]", "mining.notify", client->enonce1, client->enonce1,
n2len); n2len);
ck_runlock(&sdata->workbase_lock); ck_runlock(&sdata->workbase_lock);

Loading…
Cancel
Save