mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Move ::fPruneMode into BlockManager
This commit is contained in:
parent
fa721f1cab
commit
fa177d7b6b
4 changed files with 9 additions and 10 deletions
|
|
@ -18,12 +18,10 @@ std::optional<bilingual_str> ApplyArgsManOptions(const ArgsManager& args, BlockM
|
|||
uint64_t nPruneTarget{uint64_t(nPruneArg) * 1024 * 1024};
|
||||
if (nPruneArg == 1) { // manual pruning: -prune=1
|
||||
nPruneTarget = std::numeric_limits<uint64_t>::max();
|
||||
fPruneMode = true;
|
||||
} else if (nPruneTarget) {
|
||||
if (nPruneTarget < MIN_DISK_SPACE_FOR_BLOCK_FILES) {
|
||||
return strprintf(_("Prune configured below the minimum of %d MiB. Please use a higher number."), MIN_DISK_SPACE_FOR_BLOCK_FILES / 1024 / 1024);
|
||||
}
|
||||
fPruneMode = true;
|
||||
}
|
||||
opts.prune_target = nPruneTarget;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue