KawPow: reduced stale/expired shares
This commit is contained in:
parent
95ef32c913
commit
9cbdb7f1f2
22 changed files with 218 additions and 104 deletions
|
@ -43,7 +43,7 @@ xmrig::CudaKawPowRunner::CudaKawPowRunner(size_t index, const CudaLaunchData &da
|
|||
|
||||
bool xmrig::CudaKawPowRunner::run(uint32_t /*startNonce*/, uint32_t *rescount, uint32_t *resnonce)
|
||||
{
|
||||
return callWrapper(CudaLib::kawPowHash(m_ctx, m_jobBlob, m_target, rescount, resnonce));
|
||||
return callWrapper(CudaLib::kawPowHash(m_ctx, m_jobBlob, m_target, rescount, resnonce, &m_skippedHashes));
|
||||
}
|
||||
|
||||
|
||||
|
@ -75,3 +75,9 @@ bool xmrig::CudaKawPowRunner::set(const Job &job, uint8_t *blob)
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
void xmrig::CudaKawPowRunner::jobEarlyNotification(const Job&)
|
||||
{
|
||||
CudaLib::kawPowStopHash(m_ctx);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue