|
|
|
@ -1759,7 +1759,7 @@ static bool send_version(struct pool *pool, json_t *val)
@@ -1759,7 +1759,7 @@ static bool send_version(struct pool *pool, json_t *val)
|
|
|
|
|
if (!id) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
sprintf(s, "{\"id\": %d, \"result\": \""PACKAGE"/"VERSION"\", \"error\": null}", id); |
|
|
|
|
sprintf(s, "{\"id\": %d, \"result\": \""PACKAGE"/"CGMINER_VERSION"\", \"error\": null}", id); |
|
|
|
|
if (!stratum_send(pool, s, strlen(s))) |
|
|
|
|
return false; |
|
|
|
|
|
|
|
|
@ -2443,9 +2443,9 @@ resend:
@@ -2443,9 +2443,9 @@ resend:
|
|
|
|
|
sprintf(s, "{\"id\": %d, \"method\": \"mining.subscribe\", \"params\": []}", swork_id++); |
|
|
|
|
} else { |
|
|
|
|
if (pool->sessionid) |
|
|
|
|
sprintf(s, "{\"id\": %d, \"method\": \"mining.subscribe\", \"params\": [\""PACKAGE"/"VERSION"\", \"%s\"]}", swork_id++, pool->sessionid); |
|
|
|
|
sprintf(s, "{\"id\": %d, \"method\": \"mining.subscribe\", \"params\": [\""PACKAGE"/"CGMINER_VERSION"\", \"%s\"]}", swork_id++, pool->sessionid); |
|
|
|
|
else |
|
|
|
|
sprintf(s, "{\"id\": %d, \"method\": \"mining.subscribe\", \"params\": [\""PACKAGE"/"VERSION"\"]}", swork_id++); |
|
|
|
|
sprintf(s, "{\"id\": %d, \"method\": \"mining.subscribe\", \"params\": [\""PACKAGE"/"CGMINER_VERSION"\"]}", swork_id++); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (__stratum_send(pool, s, strlen(s)) != SEND_OK) { |
|
|
|
|