1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 07:55:04 -05:00

Fix Job::getNumTransactions.

This commit is contained in:
XMRig
2021-08-12 22:30:47 +07:00
parent e0749a82c2
commit f92ad4423d

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