Bitcoin Core  26.1.0
P2P Digital Currency
server_util.h
Go to the documentation of this file.
1 // Copyright (c) 2021-2022 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_RPC_SERVER_UTIL_H
6 #define BITCOIN_RPC_SERVER_UTIL_H
7 
8 #include <any>
9 
10 class AddrMan;
11 class ArgsManager;
13 class CConnman;
14 class CTxMemPool;
15 class ChainstateManager;
16 class PeerManager;
17 class BanMan;
18 namespace node {
19 struct NodeContext;
20 } // namespace node
21 
24 CTxMemPool& EnsureAnyMemPool(const std::any& context);
26 BanMan& EnsureAnyBanman(const std::any& context);
28 ArgsManager& EnsureAnyArgsman(const std::any& context);
36 AddrMan& EnsureAnyAddrman(const std::any& context);
37 
38 #endif // BITCOIN_RPC_SERVER_UTIL_H
AddrMan & EnsureAnyAddrman(const std::any &context)
Definition: banman.h:58
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
Definition: validation.h:827
BanMan & EnsureAnyBanman(const std::any &context)
Definition: server_util.cpp:52
CTxMemPool & EnsureAnyMemPool(const std::any &context)
Definition: server_util.cpp:38
CConnman & EnsureConnman(const node::NodeContext &node)
Definition: server_util.cpp:96
ArgsManager & EnsureAnyArgsman(const std::any &context)
Definition: server_util.cpp:65
Stochastic address manager.
Definition: addrman.h:87
NodeContext struct containing references to chain state and connection state.
Definition: context.h:48
ArgsManager & EnsureArgsman(const node::NodeContext &node)
Definition: server_util.cpp:57
The BlockPolicyEstimator is used for estimating the feerate needed for a transaction to be included i...
Definition: fees.h:146
PeerManager & EnsurePeerman(const node::NodeContext &node)
WalletContext context
Definition: net.h:1041
CTxMemPool & EnsureMemPool(const node::NodeContext &node)
Definition: server_util.cpp:30
Definition: init.h:25
node::NodeContext & EnsureAnyNodeContext(const std::any &context)
Definition: server_util.cpp:21
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:301
AddrMan & EnsureAddrman(const node::NodeContext &node)
ChainstateManager & EnsureAnyChainman(const std::any &context)
Definition: server_util.cpp:78
CBlockPolicyEstimator & EnsureAnyFeeEstimator(const std::any &context)
Definition: server_util.cpp:91
CBlockPolicyEstimator & EnsureFeeEstimator(const node::NodeContext &node)
Definition: server_util.cpp:83
BanMan & EnsureBanman(const node::NodeContext &node)
Definition: server_util.cpp:44
ChainstateManager & EnsureChainman(const node::NodeContext &node)
Definition: server_util.cpp:70