From dc1d0dd81a32fddca0d9b548024102bd34e1aab6 Mon Sep 17 00:00:00 2001 From: 0xfffc <0xfffc0000@proton.me> Date: Sat, 29 Nov 2025 19:53:34 +0000 Subject: [PATCH] cryptonote_core: set prep-blocks-threads to max threads --- src/cryptonote_core/cryptonote_core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index e636014ae..451257983 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -36,6 +36,7 @@ using namespace epee; #include +#include #include "cryptonote_core.h" #include "common/util.h" #include "common/updates.h" @@ -156,7 +157,7 @@ namespace cryptonote static const command_line::arg_descriptor arg_prep_blocks_threads = { "prep-blocks-threads" , "Max number of threads to use when preparing block hashes in groups." - , 4 + , std::thread::hardware_concurrency() > 0 ? std::thread::hardware_concurrency() : 4 }; static const command_line::arg_descriptor arg_show_time_stats = { "show-time-stats"