Added support for IPBC

This commit is contained in:
Markus Behm 2018-04-25 11:08:15 +00:00
parent fe7cfddd29
commit 86239498bd
9 changed files with 101 additions and 9 deletions

View file

@ -71,10 +71,16 @@ bool MultiWorker<N>::selfTest()
# endif
# ifndef XMRIG_NO_SUMO
return m_thread->algorithm() == xmrig::CRYPTONIGHT_HEAVY && memcmp(m_hash, test_output_heavy, sizeof m_hash) == 0;
# else
return false;
if (m_thread->algorithm() == xmrig::CRYPTONIGHT_HEAVY && memcmp(m_hash, test_output_heavy, sizeof m_hash) == 0) {
return true;
}
# endif
# ifndef XMRIG_NO_IPBC
return m_thread->algorithm() == xmrig::CRYPTONIGHT_IPBC && memcmp(m_hash, test_output_ipbc, sizeof m_hash) == 0;
# else
return false;
# endif
}