Fix Job::getNumTransactions.

This commit is contained in:
XMRig 2021-08-12 22:30:47 +07:00
parent e0749a82c2
commit f92ad4423d
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -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;
}