12 #include <validation.h>
22 return util::Error{
_(
"Prune cannot be configured with a negative value.")};
24 uint64_t nPruneTarget{uint64_t(nPruneArg) * 1024 * 1024};
27 }
else if (nPruneTarget) {
int64_t GetIntArg(const std::string &strArg, int64_t nDefault) const
Return integer argument or default value.
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
static constexpr auto PRUNE_TARGET_MANUAL
util::Result< void > ApplyArgsManOptions(const ArgsManager &args, BlockManager::Options &opts)
An options struct for BlockManager, more ergonomically referred to as BlockManager::Options due to th...
bool stop_after_block_import
bilingual_str _(const char *psz)
Translation function.
static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES