mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
refactor, dbwrapper: Add DBParams and DBOptions structs
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.
This commit is contained in:
15
src/node/database_args.h
Normal file
15
src/node/database_args.h
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user