Prepare for per pool and per job algorithms.

This commit is contained in:
XMRig
2018-04-21 19:55:51 +07:00
parent 57c856ec5c
commit 6123eb38b7
14 changed files with 116 additions and 84 deletions

View File

@@ -232,7 +232,7 @@ bool Client::parseJob(const rapidjson::Value &params, int *code)
return false;
}
Job job(m_id, m_nicehash, m_pool.algo(), m_pool.variant(), m_rpcId);
Job job(m_id, m_nicehash, m_pool.algorithm(), m_pool.variant(), m_rpcId);
if (!job.setId(params["job_id"].GetString())) {
*code = 3;