From f92ad4423db92ed8ecfd46310ef5bfeb5eb39106 Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 12 Aug 2021 22:30:47 +0700 Subject: [PATCH] Fix Job::getNumTransactions. --- src/base/net/stratum/Job.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/net/stratum/Job.cpp b/src/base/net/stratum/Job.cpp index 7792b904a..e765978f4 100644 --- a/src/base/net/stratum/Job.cpp +++ b/src/base/net/stratum/Job.cpp @@ -165,7 +165,7 @@ void xmrig::Job::setSigKey(const char *sig_key) uint32_t xmrig::Job::getNumTransactions() const { - if (m_algorithm.family() > Algorithm::RANDOM_X) { + if (!(m_algorithm.isCN() || m_algorithm.family() == Algorithm::RANDOM_X)) { return 0; }