setBlob should run after setAlgorithm

This commit is contained in:
esrrhs 2021-03-29 12:11:03 +08:00
parent 69590f9777
commit d578a3828f
3 changed files with 13 additions and 13 deletions

View file

@ -47,8 +47,8 @@ xmrig::BenchClient::BenchClient(const std::shared_ptr<BenchConfig> &benchmark, I
std::vector<char> blob(112 * 2 + 1, '0');
blob.back() = '\0';
m_job.setBlob(blob.data());
m_job.setAlgorithm(m_benchmark->algorithm());
m_job.setBlob(blob.data());
m_job.setDiff(std::numeric_limits<uint64_t>::max());
m_job.setHeight(1);
m_job.setId("00000000");