16#include <validation.h>
23std::optional<bilingual_str>
25 if (
auto value{args.
GetBoolArg(
"-checkblockindex")}) {
29 if (
auto value{args.
GetBoolArg(
"-checkpoints")}) {
33 if (
auto value{args.
GetArg(
"-minimumchainwork")}) {
37 "Invalid non-hex (%s) minimum chain work value specified"),
43 if (
auto value{args.
GetArg(
"-assumevalid")}) {
47 if (
auto value{args.
GetIntArg(
"-maxtipage")}) {
55 if (
auto value{args.
GetBoolArg(
"-persistrecentheaderstime")}) {
arith_uint256 UintToArith256(const uint256 &a)
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.
std::optional< bilingual_str > ApplyArgsManOptions(const ArgsManager &argsman, const CChainParams &chainparams, MemPoolOptions &mempool_opts)
Overlay the options set in argsman on top of corresponding members in mempool_opts.
void ReadCoinsViewArgs(const ArgsManager &args, CoinsViewOptions &options)
void ReadDatabaseArgs(const ArgsManager &args, DBOptions &options)
static BlockHash fromHex(const std::string &str)
An options struct for ChainstateManager, more ergonomically referred to as ChainstateManager::Options...
std::optional< bool > check_block_index
std::optional< arith_uint256 > minimum_chain_work
If set, it will override the minimum work we will assume exists on some valid chain.
std::chrono::seconds max_tip_age
If the tip is older than this, the node is considered to be in initial block download.
std::optional< BlockHash > assumed_valid_block
If set, it will override the block hash whose ancestors we will assume to have valid scripts without ...
bool store_recent_headers_time
If set, store and load the last few block headers reception time to speed up RTT bootstraping.
CoinsViewOptions coins_view
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
uint256 uint256S(const char *str)
uint256 from const char *.
bool IsHexNumber(std::string_view str)
Return true if the string is a hex number, optionally prefixed with "0x".