Added x3 x4 x5 hashing modes.

This commit is contained in:
XMRig 2018-04-16 15:40:37 +07:00
parent dba1acd302
commit 9e3f2ae9f9
6 changed files with 442 additions and 20 deletions

View file

@ -104,7 +104,7 @@ void MultiWorker<N>::start()
for (size_t i = 0; i < N; ++i) {
if (*reinterpret_cast<uint64_t*>(m_hash + (i * 32) + 24) < m_state.job.target()) {
Workers::submit(JobResult(m_state.job.poolId(), m_state.job.id(), *nonce(i), m_hash, m_state.job.diff()));
Workers::submit(JobResult(m_state.job.poolId(), m_state.job.id(), *nonce(i), m_hash + (i * 32), m_state.job.diff()));
}
*nonce(i) += 1;