mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 09:22:48 -05:00
Better v1 PoW implementation, added variant option.
This commit is contained in:
@@ -221,7 +221,7 @@ bool Client::parseJob(const rapidjson::Value ¶ms, int *code)
|
||||
return false;
|
||||
}
|
||||
|
||||
Job job(m_id, m_nicehash, m_url.isMonero());
|
||||
Job job(m_id, m_nicehash, m_url.algo(), m_url.variant());
|
||||
if (!job.setId(params["job_id"].GetString())) {
|
||||
*code = 3;
|
||||
return false;
|
||||
@@ -241,6 +241,10 @@ bool Client::parseJob(const rapidjson::Value ¶ms, int *code)
|
||||
job.setCoin(params["coin"].GetString());
|
||||
}
|
||||
|
||||
if (params.HasMember("variant")) {
|
||||
job.setVariant(params["variant"].GetInt());
|
||||
}
|
||||
|
||||
if (m_job == job) {
|
||||
if (!m_quiet) {
|
||||
LOG_WARN("[%s:%u] duplicate job received, reconnect", m_url.host(), m_url.port());
|
||||
|
||||
Reference in New Issue
Block a user