/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/kernel/blockmanager_opts.h
36 строк
979 B
MarcoFalke
scripted-diff: [doc] Unify stale copyright headers
17 дек 2025, 00:21
17 дек 2025, 00:21
fa5f297
Код
Авторство
О чём код?
// Copyright (c) 2022-present 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 #include <dbwrapper.h> #include <kernel/notifications_interface.h> #include <util/fs.h> #include <cstdint> 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; Notifications& notifications; DBParams block_tree_db_params; }; } // namespace kernel #endif // BITCOIN_KERNEL_BLOCKMANAGER_OPTS_H