15#include <validation.h>
23 auto node_context = util::AnyPtr<NodeContext>(context);
75 return *
node.chainman;
85 if (!
node.fee_estimator) {
88 return *
node.fee_estimator;
101 return *
node.connman;
117 return *
node.peerman;
125 return *
node.addrman;
Stochastic address manager.
The BlockPolicyEstimator is used for estimating the feerate needed for a transaction to be included i...
CTxMemPool stores valid-according-to-the-current-best-chain transactions that may be included in the ...
Provides an interface for creating and interacting with one or two chainstates: an IBD chainstate gen...
Interface giving clients (RPC, Stratum v2 Template Provider in the future) ability to create block te...
UniValue JSONRPCError(int code, const std::string &message)
@ RPC_CLIENT_MEMPOOL_DISABLED
Chain errors.
@ RPC_DATABASE_ERROR
Database error.
@ RPC_CLIENT_P2P_DISABLED
No valid connection manager instance found.
ChainstateManager & EnsureAnyChainman(const std::any &context)
BanMan & EnsureBanman(const NodeContext &node)
AddrMan & EnsureAnyAddrman(const std::any &context)
CBlockPolicyEstimator & EnsureFeeEstimator(const NodeContext &node)
NodeContext & EnsureAnyNodeContext(const std::any &context)
CTxMemPool & EnsureMemPool(const NodeContext &node)
BanMan & EnsureAnyBanman(const std::any &context)
PeerManager & EnsurePeerman(const NodeContext &node)
ChainstateManager & EnsureChainman(const NodeContext &node)
CTxMemPool & EnsureAnyMemPool(const std::any &context)
CBlockPolicyEstimator & EnsureAnyFeeEstimator(const std::any &context)
ArgsManager & EnsureArgsman(const NodeContext &node)
interfaces::Mining & EnsureMining(const NodeContext &node)
AddrMan & EnsureAddrman(const NodeContext &node)
CConnman & EnsureConnman(const NodeContext &node)
ArgsManager & EnsureAnyArgsman(const std::any &context)
NodeContext struct containing references to chain state and connection state.