From 566d6c656e0a686c261170e1f66706e0850e0568 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 14 Feb 2015 17:20:16 +1100 Subject: [PATCH] Send correct subproxy id to stratifier --- src/generator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generator.c b/src/generator.c index d57d9fad..93a9390e 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1054,7 +1054,7 @@ static void send_diff(ckpool_t *ckp, proxy_instance_t *proxi) JSON_CPACK(json_msg, "{sisisf}", "proxy", proxy->id, - "subproxy", proxi->id, + "subproxy", proxi->subid, "diff", proxi->diff); msg = json_dumps(json_msg, JSON_NO_UTF8); json_decref(json_msg); @@ -1085,7 +1085,7 @@ static void send_notify(ckpool_t *ckp, proxy_instance_t *proxi) json_array_append_new(merkle_arr, json_string(&ni->merklehash[i][0])); /* Use our own jobid instead of the server's one for easy lookup */ JSON_CPACK(json_msg, "{sisisisssisssssosssssssb}", - "proxy", proxy->id, "subproxy", proxi->id, + "proxy", proxy->id, "subproxy", proxi->subid, "jobid", ni->id, "prevhash", ni->prevhash, "coinb1len", ni->coinb1len, "coinbase1", ni->coinbase1, "coinbase2", ni->coinbase2, "merklehash", merkle_arr, "bbversion", ni->bbversion, @@ -1281,7 +1281,7 @@ static void send_subscribe(ckpool_t *ckp, proxy_instance_t *proxi) JSON_CPACK(json_msg, "{sisisssi}", "proxy", proxi->proxy->id, - "subproxy", proxi->id, + "subproxy", proxi->subid, "enonce1", proxi->enonce1, "nonce2len", proxi->nonce2len); msg = json_dumps(json_msg, JSON_NO_UTF8);