mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
refactor: Move {MAX,DEFAULT}_SCRIPTCHECK_THREADS constants
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user