/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/node/database_args.cpp
18 строк
699 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. #include <node/database_args.h> #include <common/args.h> #include <dbwrapper.h> namespace node { void ReadDatabaseArgs(const ArgsManager& args, DBOptions& options) { // Settings here apply to all databases (chainstate, blocks, and index // databases), but it'd be easy to parse database-specific options by adding // a database_type string or enum parameter to this function. if (auto value = args.GetBoolArg("-forcecompactdb")) options.force_compact = *value; } } // namespace node