Always reset nonce on RandomX dataset change
Also never get a new job when mining is paused
This commit is contained in:
parent
3499939433
commit
13211f457c
2 changed files with 8 additions and 1 deletions
|
@ -389,9 +389,11 @@ void xmrig::CpuWorker<N>::start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Nonce::isPaused()) {
|
||||||
consumeJob();
|
consumeJob();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<size_t N>
|
template<size_t N>
|
||||||
|
|
|
@ -576,6 +576,11 @@ void xmrig::Miner::setJob(const Job &job, bool donate)
|
||||||
|
|
||||||
# ifdef XMRIG_ALGO_RANDOMX
|
# ifdef XMRIG_ALGO_RANDOMX
|
||||||
const bool ready = d_ptr->initRX();
|
const bool ready = d_ptr->initRX();
|
||||||
|
|
||||||
|
// Always reset nonce on RandomX dataset change
|
||||||
|
if (!ready) {
|
||||||
|
d_ptr->reset = true;
|
||||||
|
}
|
||||||
# else
|
# else
|
||||||
constexpr const bool ready = true;
|
constexpr const bool ready = true;
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue