13 #include <validation.h>
20 std::optional<bilingual_str>
22 if (
auto value{args.
GetBoolArg(
"-checkblockindex")}) {
26 if (
auto value{args.
GetBoolArg(
"-checkpoints")}) {
30 if (
auto value{args.
GetArg(
"-minimumchainwork")}) {
34 "Invalid non-hex (%s) minimum chain work value specified"),
40 if (
auto value{args.
GetArg(
"-assumevalid")}) {
44 if (
auto value{args.
GetIntArg(
"-maxtipage")}) {
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 &args, BlockManager::Options &opts)
bool IsHexNumber(const std::string &str)
Return true if the string is a hex number, optionally prefixed with "0x".
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 ...
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
uint256 uint256S(const char *str)
uint256 from const char *.