12#include <validation.h>
23 return util::Error{
_(
"Prune cannot be configured with a negative value.")};
25 uint64_t nPruneTarget{uint64_t(nPruneArg) * 1024 * 1024};
28 }
else if (nPruneTarget) {
33 opts.prune_target = nPruneTarget;
35 if (
auto value{
args.
GetBoolArg(
"-fastprune")}) opts.fast_prune = *value;
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...
bilingual_str _(ConstevalStringLiteral str)
Translation function.
static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES