Add -blocksxor boolean option

This commit is contained in:
MarcoFalke
2023-06-30 12:42:47 +02:00
parent fa7f7ac040
commit fa359255fe
8 changed files with 78 additions and 7 deletions

View File

@@ -16,6 +16,7 @@
namespace node {
util::Result<void> ApplyArgsManOptions(const ArgsManager& args, BlockManager::Options& opts)
{
if (auto value{args.GetBoolArg("-blocksxor")}) opts.use_xor = *value;
// block pruning; get the amount of disk space (in MiB) to allot for block & undo files
int64_t nPruneArg{args.GetIntArg("-prune", opts.prune_target)};
if (nPruneArg < 0) {