chainstatemanager_args.h raw

   1  // Copyright (c) 2022-present 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  
  13  /** -par default (number of script-checking threads, 0 = auto) */
  14  static constexpr int DEFAULT_SCRIPTCHECK_THREADS{0};
  15  
  16  namespace node {
  17  [[nodiscard]] util::Result<void> ApplyArgsManOptions(const ArgsManager& args, ChainstateManager::Options& opts);
  18  } // namespace node
  19  
  20  #endif // BITCOIN_NODE_CHAINSTATEMANAGER_ARGS_H
  21