Fixed "coin" option for self select mode.

This commit is contained in:
XMRig 2019-10-22 16:54:36 +07:00
parent 6e9fd5a430
commit dc705d88ab

View file

@ -131,6 +131,10 @@ bool xmrig::SelfSelectClient::parseResponse(int64_t id, rapidjson::Value &result
return false; return false;
} }
if (pool().coin().isValid()) {
m_job.setAlgorithm(pool().coin().algorithm(m_job.blob()[0]));
}
m_job.setHeight(Json::getUint64(result, kHeight)); m_job.setHeight(Json::getUint64(result, kHeight));
m_job.setSeedHash(Json::getString(result, kSeedHash)); m_job.setSeedHash(Json::getString(result, kSeedHash));