Move RandowWOW to new global algorithm.

This commit is contained in:
XMRig
2019-06-25 08:21:40 +07:00
parent 5aca3c38e6
commit ee6043ac2f
8 changed files with 54 additions and 11 deletions

View File

@@ -37,7 +37,9 @@ template<size_t N>
MultiWorker<N>::MultiWorker(ThreadHandle *handle)
: Worker(handle)
{
m_memory = Mem::create(m_ctx, m_thread->algorithm(), N);
if (m_thread->algorithm() != xmrig::RANDOM_X) {
m_memory = Mem::create(m_ctx, m_thread->algorithm(), N);
}
}
@@ -125,6 +127,12 @@ bool MultiWorker<N>::selfTest()
}
# endif
# ifdef XMRIG_ALGO_RANDOMX
if (m_thread->algorithm() == RANDOM_X) {
return true;
}
# endif
return false;
}