Skip to content

Commit 9d4e77f

Browse files
committed
Duplicate share fix
1 parent 03d8211 commit 9d4e77f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/backend/cpu/CpuWorker.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,9 @@ void xmrig::CpuWorker<N>::start()
389389
}
390390
}
391391

392-
consumeJob();
392+
if (!Nonce::isPaused()) {
393+
consumeJob();
394+
}
393395
}
394396
}
395397

src/core/Miner.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,11 @@ void xmrig::Miner::setJob(const Job &job, bool donate)
576576

577577
# ifdef XMRIG_ALGO_RANDOMX
578578
const bool ready = d_ptr->initRX();
579+
580+
// Always reset nonce on RandomX dataset change
581+
if (!ready) {
582+
d_ptr->reset = true;
583+
}
579584
# else
580585
constexpr const bool ready = true;
581586
# endif

src/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define APP_ID "xmrig"
2323
#define APP_NAME "XMRig"
2424
#define APP_DESC "XMRig miner"
25-
#define APP_VERSION "6.22.0-C3"
25+
#define APP_VERSION "6.22.0-C5"
2626
#define APP_DOMAIN "xmrig.com"
2727
#define APP_SITE "www.xmrig.com"
2828
#define APP_COPYRIGHT "Copyright (C) 2016-2024 xmrig.com"

0 commit comments

Comments
 (0)