mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 00:33:33 -05:00
KawPow: reduced stale/expired shares
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user