mirror of
https://github.com/monero-project/monero.git
synced 2026-07-28 22:51:07 -07:00
cryptonote_core: set prep-blocks-threads to max threads
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
using namespace epee;
|
using namespace epee;
|
||||||
|
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
#include <thread>
|
||||||
#include "cryptonote_core.h"
|
#include "cryptonote_core.h"
|
||||||
#include "common/util.h"
|
#include "common/util.h"
|
||||||
#include "common/updates.h"
|
#include "common/updates.h"
|
||||||
@@ -156,7 +157,7 @@ namespace cryptonote
|
|||||||
static const command_line::arg_descriptor<uint64_t> arg_prep_blocks_threads = {
|
static const command_line::arg_descriptor<uint64_t> arg_prep_blocks_threads = {
|
||||||
"prep-blocks-threads"
|
"prep-blocks-threads"
|
||||||
, "Max number of threads to use when preparing block hashes in groups."
|
, "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<uint64_t> arg_show_time_stats = {
|
static const command_line::arg_descriptor<uint64_t> arg_show_time_stats = {
|
||||||
"show-time-stats"
|
"show-time-stats"
|
||||||
|
|||||||
Reference in New Issue
Block a user