Bitcoin Core
24.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
ArgsManager
;
11
class
CBlockPolicyEstimator
;
12
class
CConnman
;
13
class
CTxMemPool
;
14
class
ChainstateManager
;
15
class
PeerManager
;
16
namespace
node
{
17
struct
NodeContext;
18
}
// namespace node
19
20
node::NodeContext
&
EnsureAnyNodeContext
(
const
std::any&
context
);
21
CTxMemPool
&
EnsureMemPool
(
const
node::NodeContext
&
node
);
22
CTxMemPool
&
EnsureAnyMemPool
(
const
std::any&
context
);
23
ArgsManager
&
EnsureArgsman
(
const
node::NodeContext
&
node
);
24
ArgsManager
&
EnsureAnyArgsman
(
const
std::any&
context
);
25
ChainstateManager
&
EnsureChainman
(
const
node::NodeContext
&
node
);
26
ChainstateManager
&
EnsureAnyChainman
(
const
std::any&
context
);
27
CBlockPolicyEstimator
&
EnsureFeeEstimator
(
const
node::NodeContext
&
node
);
28
CBlockPolicyEstimator
&
EnsureAnyFeeEstimator
(
const
std::any&
context
);
29
CConnman
&
EnsureConnman
(
const
node::NodeContext
&
node
);
30
PeerManager
&
EnsurePeerman
(
const
node::NodeContext
&
node
);
31
32
#endif
// BITCOIN_RPC_SERVER_UTIL_H
ArgsManager
Definition:
system.h:165
CBlockPolicyEstimator
The BlockPolicyEstimator is used for estimating the feerate needed for a transaction to be included i...
Definition:
fees.h:133
CConnman
Definition:
net.h:666
CTxMemPool
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition:
txmempool.h:316
ChainstateManager
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
Definition:
validation.h:802
PeerManager
Definition:
net_processing.h:42
node
Definition:
init.h:25
context
WalletContext context
Definition:
notifications.cpp:37
EnsureConnman
CConnman & EnsureConnman(const node::NodeContext &node)
Definition:
server_util.cpp:81
EnsureFeeEstimator
CBlockPolicyEstimator & EnsureFeeEstimator(const node::NodeContext &node)
Definition:
server_util.cpp:68
EnsureAnyArgsman
ArgsManager & EnsureAnyArgsman(const std::any &context)
Definition:
server_util.cpp:50
EnsureAnyChainman
ChainstateManager & EnsureAnyChainman(const std::any &context)
Definition:
server_util.cpp:63
EnsurePeerman
PeerManager & EnsurePeerman(const node::NodeContext &node)
Definition:
server_util.cpp:89
EnsureArgsman
ArgsManager & EnsureArgsman(const node::NodeContext &node)
Definition:
server_util.cpp:42
EnsureAnyMemPool
CTxMemPool & EnsureAnyMemPool(const std::any &context)
Definition:
server_util.cpp:37
EnsureMemPool
CTxMemPool & EnsureMemPool(const node::NodeContext &node)
Definition:
server_util.cpp:29
EnsureAnyFeeEstimator
CBlockPolicyEstimator & EnsureAnyFeeEstimator(const std::any &context)
Definition:
server_util.cpp:76
EnsureAnyNodeContext
node::NodeContext & EnsureAnyNodeContext(const std::any &context)
Definition:
server_util.cpp:20
EnsureChainman
ChainstateManager & EnsureChainman(const node::NodeContext &node)
Definition:
server_util.cpp:55
node::NodeContext
NodeContext struct containing references to chain state and connection state.
Definition:
context.h:43
Generated on Sun Feb 5 2023 02:44:35 for Bitcoin Core by
1.9.1