diff --git a/src/base b/src/base index 8fb0d855..ff3cb7bd 160000 --- a/src/base +++ b/src/base @@ -1 +1 @@ -Subproject commit 8fb0d855bc814d876fcffb2b3d8028c56467da99 +Subproject commit ff3cb7bdc3b1660efba76a31e08e0ec0514de815 diff --git a/src/core/Miner.cpp b/src/core/Miner.cpp index a55f0b32..dfa810d7 100644 --- a/src/core/Miner.cpp +++ b/src/core/Miner.cpp @@ -561,6 +561,12 @@ void xmrig::Miner::setJob(const Job &job, bool donate) const uint8_t index = donate ? 1 : 0; d_ptr->reset = !(d_ptr->job.index() == 1 && index == 0 && d_ptr->userJobId == job.id()); + + // Don't reset nonce if pool sends the same hashing blob again, but with different difficulty (for example) + if (d_ptr->job.isEqualBlob(job)) { + d_ptr->reset = false; + } + d_ptr->job = job; d_ptr->job.setIndex(index);