Bitcoin ABC  0.26.3
P2P Digital Currency
server_util.h
Go to the documentation of this file.
1 // Copyright (c) 2021 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 ArgsManager;
11 class CConnman;
12 class CTxMemPool;
13 class ChainstateManager;
14 class PeerManager;
15 namespace node {
16 struct NodeContext;
17 } // namespace node
18 
19 node::NodeContext &EnsureAnyNodeContext(const std::any &context);
21 CTxMemPool &EnsureAnyMemPool(const std::any &context);
23 ArgsManager &EnsureAnyArgsman(const std::any &context);
25 ChainstateManager &EnsureAnyChainman(const std::any &context);
28 
29 #endif // BITCOIN_RPC_SERVER_UTIL_H
Definition: net.h:845
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition: txmempool.h:209
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
Definition: validation.h:1144
Definition: init.h:28
CConnman & EnsureConnman(const node::NodeContext &node)
Definition: server_util.cpp:61
ArgsManager & EnsureAnyArgsman(const std::any &context)
Definition: server_util.cpp:46
ChainstateManager & EnsureAnyChainman(const std::any &context)
Definition: server_util.cpp:57
PeerManager & EnsurePeerman(const node::NodeContext &node)
Definition: server_util.cpp:70
ArgsManager & EnsureArgsman(const node::NodeContext &node)
Definition: server_util.cpp:39
CTxMemPool & EnsureAnyMemPool(const std::any &context)
Definition: server_util.cpp:35
CTxMemPool & EnsureMemPool(const node::NodeContext &node)
Definition: server_util.cpp:27
node::NodeContext & EnsureAnyNodeContext(const std::any &context)
Definition: server_util.cpp:19
ChainstateManager & EnsureChainman(const node::NodeContext &node)
Definition: server_util.cpp:50
NodeContext struct containing references to chain state and connection state.
Definition: context.h:38