18#include <validation.h>
57 if (script_threads <= 0) {
63 opts.worker_threads_num = script_threads - 1;
70 size_t clamped_size_each = std::max<int64_t>(*max_size, 0) * (1 << 20) / 2;
71 opts.script_execution_cache_bytes = clamped_size_each;
72 opts.signature_cache_bytes = clamped_size_each;
arith_uint256 UintToArith256(const uint256 &a)
static constexpr int DEFAULT_SCRIPTCHECK_THREADS
-par default (number of script-checking threads, 0 = auto)
int64_t GetIntArg(const std::string &strArg, int64_t nDefault) const
Return integer argument or default value.
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
static constexpr unsigned int size()
static std::optional< uint256 > FromUserHex(std::string_view str)
int GetNumCores()
Return the number of cores available on the current system.
util::Result< void > ApplyArgsManOptions(const ArgsManager &args, BlockManager::Options &opts)
void ReadCoinsViewArgs(const ArgsManager &args, CoinsViewOptions &options)
void ReadDatabaseArgs(const ArgsManager &args, DBOptions &options)
An options struct for ChainstateManager, more ergonomically referred to as ChainstateManager::Options...
std::optional< uint256 > assumed_valid_block
If set, it will override the block hash whose ancestors we will assume to have valid scripts without ...
std::optional< arith_uint256 > minimum_chain_work
If set, it will override the minimum work we will assume exists on some valid chain.
std::optional< int32_t > check_block_index
std::chrono::seconds max_tip_age
If the tip is older than this, the node is considered to be in initial block download.
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.