Bitcoin Core
32.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
rpc
server_util.h
Go to the documentation of this file.
1
// Copyright (c) 2021-present 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
CBlockIndex
;
13
class
FeeRateEstimatorManager
;
14
class
CConnman
;
15
class
CTxMemPool
;
16
class
ChainstateManager
;
17
class
PeerManager
;
18
class
BanMan
;
19
namespace
Consensus
{
20
struct
Params
;
21
}
// namespace Consensus
22
23
namespace
node
{
24
struct
NodeContext
;
25
}
// namespace node
26
namespace
interfaces
{
27
class
Mining
;
28
}
// namespace interfaces
29
30
node::NodeContext
&
EnsureAnyNodeContext
(
const
std::any&
context
);
31
CTxMemPool
&
EnsureMemPool
(
const
node::NodeContext
&
node
);
32
CTxMemPool
&
EnsureAnyMemPool
(
const
std::any&
context
);
33
BanMan
&
EnsureBanman
(
const
node::NodeContext
&
node
);
34
BanMan
&
EnsureAnyBanman
(
const
std::any&
context
);
35
ArgsManager
&
EnsureArgsman
(
const
node::NodeContext
&
node
);
36
ArgsManager
&
EnsureAnyArgsman
(
const
std::any&
context
);
37
ChainstateManager
&
EnsureChainman
(
const
node::NodeContext
&
node
);
38
ChainstateManager
&
EnsureAnyChainman
(
const
std::any&
context
);
39
FeeRateEstimatorManager
&
EnsureFeeEstimatorMan
(
const
node::NodeContext
&
node
);
40
FeeRateEstimatorManager
&
EnsureAnyFeeEstimatorMan
(
const
std::any&
context
);
41
CConnman
&
EnsureConnman
(
const
node::NodeContext
&
node
);
42
interfaces::Mining
&
EnsureMining
(
const
node::NodeContext
&
node
);
43
PeerManager
&
EnsurePeerman
(
const
node::NodeContext
&
node
);
44
AddrMan
&
EnsureAddrman
(
const
node::NodeContext
&
node
);
45
AddrMan
&
EnsureAnyAddrman
(
const
std::any&
context
);
46
48
void
NextEmptyBlockIndex
(
CBlockIndex
& tip,
const
Consensus::Params
& consensusParams,
CBlockIndex
& next_index);
49
50
#endif
// BITCOIN_RPC_SERVER_UTIL_H
AddrMan
Stochastic address manager.
Definition
addrman.h:110
ArgsManager
Definition
args.h:107
BanMan
Definition
banman.h:64
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition
chain.h:94
CConnman
Definition
net.h:1089
CTxMemPool
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Definition
txmempool.h:187
ChainstateManager
Interface for managing multiple Chainstate objects, where each chainstate is associated with chainsta...
Definition
validation.h:950
FeeRateEstimatorManager
Manages fee rate estimators.
Definition
estimator_man.h:31
Mining::context
virtual const node::NodeContext * context()
Definition
mining.h:209
PeerManager
Definition
net_processing.h:90
interfaces::Mining
Definition
mining.h:108
Consensus
Transaction validation functions.
Definition
blockencodings.h:15
interfaces
Definition
interfaces.cpp:42
node
Definition
messages.h:21
EnsureAnyChainman
ChainstateManager & EnsureAnyChainman(const std::any &context)
Definition
server_util.cpp:85
EnsureBanman
BanMan & EnsureBanman(const NodeContext &node)
Definition
server_util.cpp:51
NextEmptyBlockIndex
void NextEmptyBlockIndex(CBlockIndex &tip, const Consensus::Params &consensusParams, CBlockIndex &next_index)
Return an empty block index on top of the tip, with height, time and nBits set.
Definition
server_util.cpp:140
EnsureAnyAddrman
AddrMan & EnsureAnyAddrman(const std::any &context)
Definition
server_util.cpp:135
EnsureFeeEstimatorMan
FeeRateEstimatorManager & EnsureFeeEstimatorMan(const NodeContext &node)
Definition
server_util.cpp:90
EnsureAnyNodeContext
NodeContext & EnsureAnyNodeContext(const std::any &context)
Definition
server_util.cpp:28
EnsureMemPool
CTxMemPool & EnsureMemPool(const NodeContext &node)
Definition
server_util.cpp:37
EnsureAnyBanman
BanMan & EnsureAnyBanman(const std::any &context)
Definition
server_util.cpp:59
EnsurePeerman
PeerManager & EnsurePeerman(const NodeContext &node)
Definition
server_util.cpp:119
EnsureChainman
ChainstateManager & EnsureChainman(const NodeContext &node)
Definition
server_util.cpp:77
EnsureAnyMemPool
CTxMemPool & EnsureAnyMemPool(const std::any &context)
Definition
server_util.cpp:45
EnsureAnyFeeEstimatorMan
FeeRateEstimatorManager & EnsureAnyFeeEstimatorMan(const std::any &context)
Definition
server_util.cpp:98
EnsureArgsman
ArgsManager & EnsureArgsman(const NodeContext &node)
Definition
server_util.cpp:64
EnsureMining
interfaces::Mining & EnsureMining(const NodeContext &node)
Definition
server_util.cpp:111
EnsureAddrman
AddrMan & EnsureAddrman(const NodeContext &node)
Definition
server_util.cpp:127
EnsureConnman
CConnman & EnsureConnman(const NodeContext &node)
Definition
server_util.cpp:103
EnsureAnyArgsman
ArgsManager & EnsureAnyArgsman(const std::any &context)
Definition
server_util.cpp:72
Consensus::Params
Parameters that influence chain consensus.
Definition
params.h:88
node::NodeContext
Definition
context.h:59
Generated on
for Bitcoin Core by
1.18.0