mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-30 13:07:32 -03:00
2eaeded37f
Add DBParams and DBOptions structs to remove ArgsManager uses from dbwrapper. To reduce size of this commit, this moves references to gArgs variable out of dbwrapper.cpp to calling code in txdb.cpp. But these moves are temporary. The gArgs references in txdb.cpp are moved out to calling code in init.cpp in later commits. This commit does not change behavior.
15 lines
448 B
C++
15 lines
448 B
C++
// 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_NODE_DATABASE_ARGS_H
|
|
#define BITCOIN_NODE_DATABASE_ARGS_H
|
|
|
|
class ArgsManager;
|
|
struct DBOptions;
|
|
|
|
namespace node {
|
|
void ReadDatabaseArgs(const ArgsManager& args, DBOptions& options);
|
|
} // namespace node
|
|
|
|
#endif // BITCOIN_NODE_DATABASE_ARGS_H
|