Added coin field support added in xmrig-proxy 2.5.

This commit is contained in:
XMRig
2018-03-09 00:50:06 +07:00
parent a8b1f84e30
commit 1d6ffa3e8d
3 changed files with 20 additions and 0 deletions

View File

@@ -237,6 +237,10 @@ bool Client::parseJob(const rapidjson::Value &params, int *code)
return false;
}
if (params.HasMember("coin")) {
job.setCoin(params["coin"].GetString());
}
if (m_job == job) {
if (!m_quiet) {
LOG_WARN("[%s:%u] duplicate job received, reconnect", m_url.host(), m_url.port());