Added experimental DefyX support

This commit is contained in:
MoneroOcean 2019-08-15 17:23:22 -07:00
parent 4639c860a4
commit c19cb4672d
30 changed files with 5249 additions and 2 deletions

View file

@ -41,6 +41,7 @@
#ifdef XMRIG_ALGO_RANDOMX
# include "crypto/randomx/randomx.h"
# include "crypto/defyx/defyx.h"
#endif
@ -190,7 +191,11 @@ void xmrig::CpuWorker<N>::start()
# ifdef XMRIG_ALGO_RANDOMX
if (job.algorithm().family() == Algorithm::RANDOM_X) {
randomx_calculate_hash(m_vm->get(), m_job.blob(), job.size(), m_hash);
if (job.algorithm() == Algorithm::DEFYX) {
defyx_calculate_hash(m_vm->get(), m_job.blob(), job.size(), m_hash);
} else {
randomx_calculate_hash(m_vm->get(), m_job.blob(), job.size(), m_hash);
}
}
else
# endif