Bitcoin ABC
0.26.3
P2P Digital Currency
src
rpc
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
CConnman
;
11
class
ChainstateManager
;
12
class
CTxMemPool
;
13
namespace
node
{
14
struct
NodeContext;
15
}
// namespace node
16
class
PeerManager
;
17
18
node::NodeContext
&
EnsureAnyNodeContext
(
const
std::any &context);
19
CTxMemPool
&
EnsureMemPool
(
const
node::NodeContext
&
node
);
20
CTxMemPool
&
EnsureAnyMemPool
(
const
std::any &context);
21
ChainstateManager
&
EnsureChainman
(
const
node::NodeContext
&
node
);
22
ChainstateManager
&
EnsureAnyChainman
(
const
std::any &context);
23
CConnman
&
EnsureConnman
(
const
node::NodeContext
&
node
);
24
PeerManager
&
EnsurePeerman
(
const
node::NodeContext
&
node
);
25
26
#endif
// BITCOIN_RPC_SERVER_UTIL_H
CConnman
Definition:
net.h:907
CTxMemPool
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition:
txmempool.h:305
ChainstateManager
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
Definition:
validation.h:1062
PeerManager
Definition:
net_processing.h:48
node
Definition:
init.h:28
EnsureConnman
CConnman & EnsureConnman(const node::NodeContext &node)
Definition:
server_util.cpp:50
EnsureAnyChainman
ChainstateManager & EnsureAnyChainman(const std::any &context)
Definition:
server_util.cpp:46
EnsurePeerman
PeerManager & EnsurePeerman(const node::NodeContext &node)
Definition:
server_util.cpp:59
EnsureAnyMemPool
CTxMemPool & EnsureAnyMemPool(const std::any &context)
Definition:
server_util.cpp:35
EnsureMemPool
CTxMemPool & EnsureMemPool(const node::NodeContext &node)
Definition:
server_util.cpp:27
EnsureAnyNodeContext
node::NodeContext & EnsureAnyNodeContext(const std::any &context)
Definition:
server_util.cpp:19
EnsureChainman
ChainstateManager & EnsureChainman(const node::NodeContext &node)
Definition:
server_util.cpp:39
node::NodeContext
NodeContext struct containing references to chain state and connection state.
Definition:
context.h:38
Generated on Fri Jun 9 2023 02:37:24 for Bitcoin ABC by
1.9.1