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 37ac1aa62c
commit 84970e9e9b
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());