Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2022-present The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#ifndef BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H6#define BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H8#include <dbwrapper.h>9#include <kernel/notifications_interface.h>10#include <util/fs.h>12#include <cstdint>14class CChainParams;16namespace kernel {18inline constexpr bool DEFAULT_XOR_BLOCKSDIR{true};20/**21* An options struct for `BlockManager`, more ergonomically referred to as22* `BlockManager::Options` due to the using-declaration in `BlockManager`.23*/24struct BlockManagerOpts {25const CChainParams& chainparams;26bool use_xor{DEFAULT_XOR_BLOCKSDIR};27uint64_t prune_target{0};28bool fast_prune{false};29const fs::path blocks_dir;30Notifications& notifications;31DBParams block_tree_db_params;32};34} // namespace kernel36#endif // BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H