Merge xmrig v6.14.0 into master
This commit is contained in:
commit
74f39ac947
47 changed files with 6885 additions and 170 deletions
|
@ -285,11 +285,17 @@ void xmrig::CpuWorker<N>::start()
|
|||
|
||||
bool valid = true;
|
||||
|
||||
uint8_t miner_signature_saved[64];
|
||||
uint8_t* miner_signature_ptr = m_job.blob() + m_job.nonceOffset() + m_job.nonceSize();
|
||||
|
||||
# ifdef XMRIG_ALGO_RANDOMX
|
||||
if (job.algorithm().family() == Algorithm::RANDOM_X) {
|
||||
|
||||
if (first) {
|
||||
first = false;
|
||||
if (job.hasMinerSignature()) {
|
||||
job.generateMinerSignature(m_job.blob(), job.size(), miner_signature_ptr, job.algorithm());
|
||||
}
|
||||
randomx_calculate_hash_first(m_vm, tempHash, m_job.blob(), job.size(), job.algorithm());
|
||||
}
|
||||
|
||||
|
@ -297,6 +303,10 @@ void xmrig::CpuWorker<N>::start()
|
|||
break;
|
||||
}
|
||||
|
||||
if (job.hasMinerSignature()) {
|
||||
memcpy(miner_signature_saved, miner_signature_ptr, sizeof(miner_signature_saved));
|
||||
job.generateMinerSignature(m_job.blob(), job.size(), miner_signature_ptr, job.algorithm());
|
||||
}
|
||||
randomx_calculate_hash_next(m_vm, tempHash, m_job.blob(), job.size(), m_hash, job.algorithm());
|
||||
}
|
||||
else
|
||||
|
@ -331,7 +341,7 @@ void xmrig::CpuWorker<N>::start()
|
|||
else
|
||||
# endif
|
||||
if (value < job.target()) {
|
||||
JobResults::submit(job, current_job_nonces[i], m_hash + (i * 32));
|
||||
JobResults::submit(job, current_job_nonces[i], m_hash + (i * 32), job.hasMinerSignature() ? miner_signature_saved : nullptr);
|
||||
}
|
||||
}
|
||||
m_count += N;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue