refactor: Move {MAX,DEFAULT}_SCRIPTCHECK_THREADS constants

This commit is contained in:
Hennadii Stepanov
2023-07-07 10:43:24 +01:00
parent 6e17b31680
commit 5b3ea5fa2e
5 changed files with 7 additions and 6 deletions

View File

@@ -7,7 +7,6 @@
#include <arith_uint256.h>
#include <common/args.h>
#include <common/system.h>
#include <kernel/chainstatemanager_opts.h>
#include <logging.h>
#include <node/coins_view_args.h>
#include <node/database_args.h>

View File

@@ -10,6 +10,11 @@
class ArgsManager;
/** Maximum number of dedicated script-checking threads allowed */
static constexpr int MAX_SCRIPTCHECK_THREADS{15};
/** -par default (number of script-checking threads, 0 = auto) */
static constexpr int DEFAULT_SCRIPTCHECK_THREADS{0};
namespace node {
[[nodiscard]] util::Result<void> ApplyArgsManOptions(const ArgsManager& args, ChainstateManager::Options& opts);
} // namespace node