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

@@ -14,12 +14,15 @@ class CChainParams;
namespace kernel {
static constexpr bool DEFAULT_XOR_BLOCKSDIR{true};
/**
* An options struct for `BlockManager`, more ergonomically referred to as
* `BlockManager::Options` due to the using-declaration in `BlockManager`.
*/
struct BlockManagerOpts {
const CChainParams& chainparams;
bool use_xor{DEFAULT_XOR_BLOCKSDIR};
uint64_t prune_target{0};
bool fast_prune{false};
const fs::path blocks_dir;