From f110b5000bcc26d2780fceaf57058b3dae7ab99b Mon Sep 17 00:00:00 2001 From: XMRig Date: Wed, 30 Oct 2019 22:40:09 +0700 Subject: [PATCH] Fixed switching from non RandomX algorithm to RandomX. --- src/core/Miner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Miner.cpp b/src/core/Miner.cpp index 0caf298f..762539c1 100644 --- a/src/core/Miner.cpp +++ b/src/core/Miner.cpp @@ -393,7 +393,7 @@ void xmrig::Miner::setJob(const Job &job, bool donate) } # ifdef XMRIG_ALGO_RANDOMX - if (d_ptr->algorithm.family() == Algorithm::RANDOM_X && job.algorithm().family() == Algorithm::RANDOM_X && !Rx::isReady(job)) { + if (job.algorithm().family() == Algorithm::RANDOM_X && !Rx::isReady(job)) { stop(); } # endif