Fixed broken "coin" setting functionality

This commit is contained in:
SChernykh 2021-04-06 23:02:10 +02:00
parent 5126cc1414
commit c080d5b962
3 changed files with 19 additions and 7 deletions

View file

@ -248,7 +248,9 @@ bool xmrig::DaemonClient::parseJob(const rapidjson::Value &params, int *code)
}
if (m_pool.coin().isValid()) {
job.setAlgorithm(m_pool.coin().algorithm(job.blob()[0]));
uint8_t blobVersion = 0;
Cvt::fromHex(&blobVersion, 1, m_blockhashingblob.data(), 2);
job.setAlgorithm(m_pool.coin().algorithm(blobVersion));
}
if (blocktemplate.isNull() || !job.setBlob(m_blockhashingblob)) {