1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-06-21 20:02:37 -04:00

RandomX v2: don't update dataset when switching to/from it

This commit is contained in:
SChernykh
2026-02-13 13:32:25 +01:00
parent 26ee1cd291
commit 48b29fd68b
2 changed files with 12 additions and 4 deletions

View File

@@ -59,6 +59,7 @@
# include "crypto/rx/Profiler.h"
# include "crypto/rx/Rx.h"
# include "crypto/rx/RxConfig.h"
# include "crypto/rx/RxAlgo.h"
#endif
@@ -556,11 +557,12 @@ void xmrig::Miner::setJob(const Job &job, bool donate)
}
# ifdef XMRIG_ALGO_RANDOMX
if (job.algorithm().family() == Algorithm::RANDOM_X && !Rx::isReady(job)) {
if (job.algorithm().family() == Algorithm::RANDOM_X) {
if (d_ptr->algorithm != job.algorithm()) {
stop();
RxAlgo::apply(job.algorithm());
}
else {
else if (!Rx::isReady(job)) {
Nonce::pause(true);
Nonce::touch();
}