aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2026-06-15 14:44:34 +0000
committertobtoht <tob@featherwallet.org>2026-06-15 14:44:34 +0000
commit744797a55b72d2a4e8034bb4c81a6aa1b0aa8c97 (patch)
treec5548b3618afb11892fec39cd96a4309ef190335
parenta87e0df21efb2ffb865962724746aaa43b1fa745 (diff)
parent0859397f21457d42635d8c638558ed503ff65fa0 (diff)
downloadmonzero-core-744797a55b72d2a4e8034bb4c81a6aa1b0aa8c97.tar.gz
monzero-core-744797a55b72d2a4e8034bb4c81a6aa1b0aa8c97.tar.xz
monzero-core-744797a55b72d2a4e8034bb4c81a6aa1b0aa8c97.zip
Merge pull request #10743
0859397 Miner: fixed thread 0 always mining with secure JIT (worse performance) (SChernykh) ACKs: selsta, tobtoht
-rw-r--r--src/cryptonote_basic/miner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index 71b8f78cc..fd13ff74d 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -578,7 +578,8 @@ namespace cryptonote
if ((b.major_version >= RX_BLOCK_VERSION) && !rx_set)
{
- crypto::rx_set_miner_thread(th_local_index, tools::get_max_concurrency());
+ // Must be non-zero value because 0 means "not a miner thread, run with secure JIT" in rx-slow-hash.c
+ crypto::rx_set_miner_thread(th_local_index + 1, tools::get_max_concurrency());
rx_set = true;
}