13#include <validation.h>
24 return util::Error{
_(
"Prune cannot be configured with a negative value.")};
int64_t GetIntArg(const std::string &strArg, int64_t nDefault) const
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)
void ReadDatabaseArgs(const ArgsManager &args, DBOptions &options)
DBOptions options
Passed-through options.
An options struct for BlockManager, more ergonomically referred to as BlockManager::Options due to th...
DBParams block_tree_db_params
consteval auto _(util::TranslatedLiteral str)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
static const uint64_t MIN_DISK_SPACE_FOR_BLOCK_FILES