Added class JobResults.

This commit is contained in:
XMRig 2019-07-06 15:22:19 +07:00
parent 9bf4c2c98f
commit ea1149a971
9 changed files with 199 additions and 47 deletions

View file

@ -28,6 +28,7 @@
#include "crypto/cn/CryptoNight_test.h"
#include "net/JobResults.h"
#include "workers/CpuThreadLegacy.h"
#include "workers/MultiWorker.h"
#include "workers/Workers.h"
@ -170,7 +171,7 @@ void xmrig::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(), m_state.job.clientId(), *nonce(i), m_hash + (i * 32), m_state.job.diff(), m_state.job.algorithm()));
JobResults::submit(JobResult(m_state.job.poolId(), m_state.job.id(), m_state.job.clientId(), *nonce(i), m_hash + (i * 32), m_state.job.diff(), m_state.job.algorithm()));
}
*nonce(i) += 1;