Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
10class ArgsManager;
11class CConnman;
12class CTxMemPool;
14class PeerManager;
15namespace node {
16struct NodeContext;
17} // namespace node
18namespace avalanche {
19class Processor;
20} // namespace avalanche
21
22node::NodeContext &EnsureAnyNodeContext(const std::any &context);
24CTxMemPool &EnsureAnyMemPool(const std::any &context);
26ArgsManager &EnsureAnyArgsman(const std::any &context);
28ChainstateManager &EnsureAnyChainman(const std::any &context);
32
33#endif // BITCOIN_RPC_SERVER_UTIL_H
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition txmempool.h:212
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
Definition init.h:28
ChainstateManager & EnsureAnyChainman(const std::any &context)
ArgsManager & EnsureArgsman(const node::NodeContext &node)
node::NodeContext & EnsureAnyNodeContext(const std::any &context)
avalanche::Processor & EnsureAvalanche(const node::NodeContext &node)
CTxMemPool & EnsureMemPool(const node::NodeContext &node)
CTxMemPool & EnsureAnyMemPool(const std::any &context)
PeerManager & EnsurePeerman(const node::NodeContext &node)
CConnman & EnsureConnman(const node::NodeContext &node)
ChainstateManager & EnsureChainman(const node::NodeContext &node)
ArgsManager & EnsureAnyArgsman(const std::any &context)
NodeContext struct containing references to chain state and connection state.
Definition context.h:43