mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-04 10:07:27 -05:00
c00fa1a734
Add CoinsViewOptions struct to remove ArgsManager uses from txdb. To reduce size of this commit, this moves references to gArgs variable out of txdb.cpp to calling code in validation.cpp. But these moves are temporary. The gArgs references in validation.cpp are moved out to calling code in init.cpp in later commits. This commit does not change behavior.
15 lines
469 B
C++
15 lines
469 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_COINS_VIEW_ARGS_H
|
|
#define BITCOIN_NODE_COINS_VIEW_ARGS_H
|
|
|
|
class ArgsManager;
|
|
struct CoinsViewOptions;
|
|
|
|
namespace node {
|
|
void ReadCoinsViewArgs(const ArgsManager& args, CoinsViewOptions& options);
|
|
} // namespace node
|
|
|
|
#endif // BITCOIN_NODE_COINS_VIEW_ARGS_H
|