From a5e8b31d55b798fb91b49d05e8416fe2baa519bc Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 25 Jul 2019 19:27:12 +0700 Subject: [PATCH] Fixed crash. --- src/crypto/rx/Rx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/rx/Rx.cpp b/src/crypto/rx/Rx.cpp index 88c9fbb2d..d6d49c656 100644 --- a/src/crypto/rx/Rx.cpp +++ b/src/crypto/rx/Rx.cpp @@ -101,6 +101,10 @@ xmrig::RxDataset *xmrig::Rx::dataset(int64_t) void xmrig::Rx::init(const Job &job, int initThreads, bool hugePages) { + if (job.algorithm().family() != Algorithm::RANDOM_X) { + return; + } + d_ptr->lock(); if (d_ptr->datasets.empty()) { d_ptr->datasets.push_back(nullptr);