Always reset nonce on RandomX dataset change

Also never get a new job when mining is paused
This commit is contained in:
SChernykh 2024-08-14 14:56:07 +02:00
parent 7e4caa8929
commit 17a52fb418
4 changed files with 10 additions and 3 deletions

View file

@ -576,6 +576,11 @@ void xmrig::Miner::setJob(const Job &job, bool donate)
# ifdef XMRIG_ALGO_RANDOMX
const bool ready = d_ptr->initRX();
// Always reset nonce on RandomX dataset change
if (!ready) {
d_ptr->reset = true;
}
# else
constexpr const bool ready = true;
# endif