Browse Source

Change message to ckdb to id.

master
Con Kolivas 11 years ago
parent
commit
0ce603c9e5
  1. 2
      src/ckpool.c
  2. 2
      src/stratifier.c

2
src/ckpool.c

@ -335,7 +335,7 @@ char *_json_ckdb_call(const ckpool_t *ckp, const char *idmsg, json_t *val,
LOGWARNING("Json dump failed in json_ckdb_call from %s %s:%d", file, func, line);
goto out;
}
ASPRINTF(&msg, "is.%s.json=%s", idmsg, dump);
ASPRINTF(&msg, "id.%s.json=%s", idmsg, dump);
free(dump);
LOGDEBUG("Sending ckdb: %s", msg);
buf = _send_recv_ckdb(ckp, msg, file, func, line);

2
src/stratifier.c

@ -1211,7 +1211,7 @@ static bool send_recv_auth(stratum_instance_t *client)
if (likely(buf)) {
char *secondaryuserid, *response = alloca(128);
sscanf(buf, "is.%*d.%s", response);
sscanf(buf, "id.%*d.%s", response);
secondaryuserid = response;
strsep(&secondaryuserid, ".");
LOGWARNING("Got auth response: %s response: %s suid: %s", buf,

Loading…
Cancel
Save