2023-01-03 13:12:45 +01:00
|
|
|
// Copyright (c) 2022 The Bitcoin Core developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H
|
|
|
|
#define BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H
|
|
|
|
|
2023-02-18 18:17:33 +01:00
|
|
|
#include <util/fs.h>
|
|
|
|
|
2023-02-18 12:57:39 +01:00
|
|
|
#include <cstdint>
|
|
|
|
|
2023-05-04 12:19:35 +02:00
|
|
|
class CChainParams;
|
|
|
|
|
2023-01-03 13:12:45 +01:00
|
|
|
namespace kernel {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An options struct for `BlockManager`, more ergonomically referred to as
|
|
|
|
* `BlockManager::Options` due to the using-declaration in `BlockManager`.
|
|
|
|
*/
|
|
|
|
struct BlockManagerOpts {
|
2023-05-04 12:19:35 +02:00
|
|
|
const CChainParams& chainparams;
|
2023-01-03 13:12:45 +01:00
|
|
|
uint64_t prune_target{0};
|
2023-02-18 12:57:39 +01:00
|
|
|
bool fast_prune{false};
|
2023-02-18 18:17:33 +01:00
|
|
|
const fs::path blocks_dir;
|
2023-01-03 13:12:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace kernel
|
|
|
|
|
|
|
|
#endif // BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H
|