Rewrite automatic variant handling.

This commit is contained in:
XMRig 2018-09-03 15:39:55 +03:00
parent a27dfa8b70
commit bb3990a076
5 changed files with 41 additions and 28 deletions

View file

@ -104,7 +104,7 @@ void MultiWorker<N>::start()
storeStats();
}
m_thread->fn(m_state.job.variant())(m_state.blob, m_state.job.size(), m_hash, m_ctx);
m_thread->fn(m_state.job.algorithm().variant())(m_state.blob, m_state.job.size(), m_hash, m_ctx);
for (size_t i = 0; i < N; ++i) {
if (*reinterpret_cast<uint64_t*>(m_hash + (i * 32) + 24) < m_state.job.target()) {