mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
-BEGIN VERIFY SCRIPT- sed --in-place --regexp-extended \ 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \ $( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' ) -END VERIFY SCRIPT-
19 lines
699 B
C++
19 lines
699 B
C++
// 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
|