Bitcoin Core  27.99.0
P2P Digital Currency
chainstatemanager_args.h
Go to the documentation of this file.
1 // Copyright (c) 2022 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_NODE_CHAINSTATEMANAGER_ARGS_H
6 #define BITCOIN_NODE_CHAINSTATEMANAGER_ARGS_H
7 
8 #include <util/result.h>
9 #include <validation.h>
10 
11 class ArgsManager;
12 
14 static constexpr int MAX_SCRIPTCHECK_THREADS{15};
16 static constexpr int DEFAULT_SCRIPTCHECK_THREADS{0};
17 
18 namespace node {
20 } // namespace node
21 
22 #endif // BITCOIN_NODE_CHAINSTATEMANAGER_ARGS_H
ArgsManager & args
Definition: bitcoind.cpp:267
static constexpr int DEFAULT_SCRIPTCHECK_THREADS
-par default (number of script-checking threads, 0 = auto)
static constexpr int MAX_SCRIPTCHECK_THREADS
Maximum number of dedicated script-checking threads allowed.
Definition: init.h:25
util::Result< void > ApplyArgsManOptions(const ArgsManager &args, BlockManager::Options &opts)
An options struct for ChainstateManager, more ergonomically referred to as ChainstateManager::Options...