mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 00:15:04 -05:00
Compare commits
4 Commits
6f0291bfde
...
b8191cef2b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8191cef2b | ||
|
|
b5de214ff9 | ||
|
|
8bd3b393ef | ||
|
|
9223c2f027 |
2
src/base
2
src/base
Submodule src/base updated: 8fb0d855bc...ff3cb7bdc3
@@ -561,6 +561,12 @@ void xmrig::Miner::setJob(const Job &job, bool donate)
|
|||||||
const uint8_t index = donate ? 1 : 0;
|
const uint8_t index = donate ? 1 : 0;
|
||||||
|
|
||||||
d_ptr->reset = !(d_ptr->job.index() == 1 && index == 0 && d_ptr->userJobId == job.id());
|
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 = job;
|
||||||
d_ptr->job.setIndex(index);
|
d_ptr->job.setIndex(index);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user