Browse Source

Don't generate share error json in standalone mode since it won't be used

master
ckolivas 9 years ago
parent
commit
7aab982dc4
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -5331,9 +5331,9 @@ out:
}
if (!share) {
if (!CKP_STANDALONE(ckp)) {
val = json_object();
json_set_int(val, "clientid", client->id);
if (!CKP_STANDALONE(ckp))
json_set_string(val, "secondaryuserid", user->secondaryuserid);
json_set_string(val, "enonce1", client->enonce1);
json_set_int(val, "workinfoid", sdata->current_workbase->id);
@ -5346,6 +5346,7 @@ out:
json_set_string(val, "createcode", __func__);
json_set_string(val, "createinet", ckp->serverurl[client->server]);
ckdbq_add(ckp, ID_SHAREERR, val);
}
LOGINFO("Invalid share from client %"PRId64": %s", client->id, client->workername);
}
free(fname);

Loading…
Cancel
Save