11#include <validation.h>
23 return _(
"Prune cannot be configured with a negative value.");
25 uint64_t nPruneTarget{uint64_t(nPruneArg) * 1024 * 1024};
29 }
else if (nPruneTarget) {
31 return strprintf(
_(
"Prune configured below the minimum of %d MiB. "
32 "Please use a higher number."),
38 if (
auto value{args.
GetBoolArg(
"-fastprune")}) {
41 if (
auto value{args.
GetBoolArg(
"-stopafterblockimport")}) {
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
std::optional< bilingual_str > 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
Require that user allocate at least 550 MiB for block & undo files (blk???.dat and rev?...