From 0ce603c9e57b9c486158993f11bfa545abfa97c4 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 17 Jun 2014 09:45:35 +1000 Subject: [PATCH] Change message to ckdb to id. --- src/ckpool.c | 2 +- src/stratifier.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ckpool.c b/src/ckpool.c index df6b8f91..47142152 100644 --- a/src/ckpool.c +++ b/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); diff --git a/src/stratifier.c b/src/stratifier.c index 0190d0ab..9dcd7cc4 100644 --- a/src/stratifier.c +++ b/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,