aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.cpp
diff options
context:
space:
mode:
authorSChernykh <15806605+SChernykh@users.noreply.github.com>2026-06-08 19:35:10 +0200
committerSChernykh <15806605+SChernykh@users.noreply.github.com>2026-06-08 19:36:30 +0200
commit0859397f21457d42635d8c638558ed503ff65fa0 (patch)
tree7405339d48d81fc08ccc678a30eb0a50cdf5f204 /src/cryptonote_basic/miner.cpp
parent8a1de602f0a049d85d6f2c7a231d90b3c9cb310e (diff)
downloadmonzero-core-0859397f21457d42635d8c638558ed503ff65fa0.tar.gz
monzero-core-0859397f21457d42635d8c638558ed503ff65fa0.tar.xz
monzero-core-0859397f21457d42635d8c638558ed503ff65fa0.zip
Miner: fixed thread 0 always mining with secure JIT (worse performance)
Diffstat (limited to 'src/cryptonote_basic/miner.cpp')
-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;
}