11#include <validation.h>
23 return _(
"Prune cannot be configured with a negative value.");
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 &argsman, const CChainParams &chainparams, MemPoolOptions &mempool_opts)
Overlay the options set in argsman on top of corresponding members in mempool_opts.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
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?...