From c81213a2b816b528e5f6624d6f14403b11ea57aa Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 25 Dec 2016 20:28:00 +1100 Subject: [PATCH] Rename poolinstance to master pool on all remote messages. --- src/stratifier.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index fd071731..3b4ba61f 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -6659,8 +6659,6 @@ static void parse_remote_workerstats(ckpool_t *ckp, json_t *val, const int64_t r client_id = (remote_id << 32) | (client_id & 0xffffffffll); json_set_int64(val, "clientid", client_id); - /* Rename the pool instance to match main pool (for now?) */ - json_set_string(val, "poolinstance", ckp->name); ckdbq_add(ckp, ID_WORKERSTATS, val); } @@ -6841,6 +6839,9 @@ static void parse_trusted_msg(ckpool_t *ckp, sdata_t *sdata, json_t *val, stratu LOGWARNING("Failed to get method from remote message %s", buf); goto out; } + /* Rename the pool instance to match main pool (for now?) */ + json_set_string(val, "poolinstance", ckp->name); + if (likely(!safecmp(method, stratum_msgs[SM_SHARE]))) parse_remote_share(ckp, sdata, val, buf); else if (!safecmp(method, stratum_msgs[SM_TRANSACTIONS]))