Bitcoin Core
28.99.0
P2P Digital Currency
src
rpc
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
;
12
class
CBlockPolicyEstimator
;
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
namespace
interfaces
{
22
class
Mining;
23
}
// namespace interfaces
24
25
node::NodeContext
&
EnsureAnyNodeContext
(
const
std::any& context);
26
CTxMemPool
&
EnsureMemPool
(
const
node::NodeContext
&
node
);
27
CTxMemPool
&
EnsureAnyMemPool
(
const
std::any& context);
28
BanMan
&
EnsureBanman
(
const
node::NodeContext
&
node
);
29
BanMan
&
EnsureAnyBanman
(
const
std::any& context);
30
ArgsManager
&
EnsureArgsman
(
const
node::NodeContext
&
node
);
31
ArgsManager
&
EnsureAnyArgsman
(
const
std::any& context);
32
ChainstateManager
&
EnsureChainman
(
const
node::NodeContext
&
node
);
33
ChainstateManager
&
EnsureAnyChainman
(
const
std::any& context);
34
CBlockPolicyEstimator
&
EnsureFeeEstimator
(
const
node::NodeContext
&
node
);
35
CBlockPolicyEstimator
&
EnsureAnyFeeEstimator
(
const
std::any& context);
36
CConnman
&
EnsureConnman
(
const
node::NodeContext
&
node
);
37
interfaces::Mining
&
EnsureMining
(
const
node::NodeContext
&
node
);
38
PeerManager
&
EnsurePeerman
(
const
node::NodeContext
&
node
);
39
AddrMan
&
EnsureAddrman
(
const
node::NodeContext
&
node
);
40
AddrMan
&
EnsureAnyAddrman
(
const
std::any& context);
41
42
#endif
// BITCOIN_RPC_SERVER_UTIL_H
AddrMan
Stochastic address manager.
Definition:
addrman.h:89
ArgsManager
Definition:
args.h:99
BanMan
Definition:
banman.h:59
CBlockPolicyEstimator
The BlockPolicyEstimator is used for estimating the feerate needed for a transaction to be included i...
Definition:
fees.h:149
CConnman
Definition:
net.h:1036
CTxMemPool
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition:
txmempool.h:304
ChainstateManager
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
Definition:
validation.h:866
PeerManager
Definition:
net_processing.h:61
interfaces::Mining
Interface giving clients (RPC, Stratum v2 Template Provider in the future) ability to create block te...
Definition:
mining.h:64
interfaces
Definition:
interfaces.cpp:41
node
Definition:
messages.h:20
EnsureBanman
BanMan & EnsureBanman(const node::NodeContext &node)
Definition:
server_util.cpp:44
EnsureAnyChainman
ChainstateManager & EnsureAnyChainman(const std::any &context)
Definition:
server_util.cpp:78
EnsureMining
interfaces::Mining & EnsureMining(const node::NodeContext &node)
Definition:
server_util.cpp:104
EnsureAnyAddrman
AddrMan & EnsureAnyAddrman(const std::any &context)
Definition:
server_util.cpp:128
EnsureAddrman
AddrMan & EnsureAddrman(const node::NodeContext &node)
Definition:
server_util.cpp:120
EnsureArgsman
ArgsManager & EnsureArgsman(const node::NodeContext &node)
Definition:
server_util.cpp:57
EnsureFeeEstimator
CBlockPolicyEstimator & EnsureFeeEstimator(const node::NodeContext &node)
Definition:
server_util.cpp:83
EnsureAnyNodeContext
node::NodeContext & EnsureAnyNodeContext(const std::any &context)
Definition:
server_util.cpp:21
EnsureAnyBanman
BanMan & EnsureAnyBanman(const std::any &context)
Definition:
server_util.cpp:52
EnsureMemPool
CTxMemPool & EnsureMemPool(const node::NodeContext &node)
Definition:
server_util.cpp:30
EnsureAnyMemPool
CTxMemPool & EnsureAnyMemPool(const std::any &context)
Definition:
server_util.cpp:38
EnsurePeerman
PeerManager & EnsurePeerman(const node::NodeContext &node)
Definition:
server_util.cpp:112
EnsureAnyFeeEstimator
CBlockPolicyEstimator & EnsureAnyFeeEstimator(const std::any &context)
Definition:
server_util.cpp:91
EnsureConnman
CConnman & EnsureConnman(const node::NodeContext &node)
Definition:
server_util.cpp:96
EnsureChainman
ChainstateManager & EnsureChainman(const node::NodeContext &node)
Definition:
server_util.cpp:70
EnsureAnyArgsman
ArgsManager & EnsureAnyArgsman(const std::any &context)
Definition:
server_util.cpp:65
node::NodeContext
NodeContext struct containing references to chain state and connection state.
Definition:
context.h:56
Generated on Wed Dec 18 2024 20:00:11 for Bitcoin Core by
1.9.4