aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server_util.h
diff options
context:
space:
mode:
authorstratospher <44024636+stratospher@users.noreply.github.com>2023-10-03 19:37:56 +0530
committerstratospher <44024636+stratospher@users.noreply.github.com>2023-10-04 08:53:51 +0530
commite6e444c06cbf09380f9924dff3d21c1be15d1753 (patch)
tree996404bb43c2c5481a437431404afde07be9b215 /src/rpc/server_util.h
parentbf589a50a0d6a7b94f1ba1ddf24a1497fd35ad44 (diff)
downloadbitcoin-e6e444c06cbf09380f9924dff3d21c1be15d1753.tar.xz
refactor: add and use EnsureAnyAddrman in rpc
Diffstat (limited to 'src/rpc/server_util.h')
-rw-r--r--src/rpc/server_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/server_util.h b/src/rpc/server_util.h
index 9af9572431..a4a53166b4 100644
--- a/src/rpc/server_util.h
+++ b/src/rpc/server_util.h
@@ -7,6 +7,7 @@
#include <any>
+class AddrMan;
class ArgsManager;
class CBlockPolicyEstimator;
class CConnman;
@@ -31,5 +32,7 @@ CBlockPolicyEstimator& EnsureFeeEstimator(const node::NodeContext& node);
CBlockPolicyEstimator& EnsureAnyFeeEstimator(const std::any& context);
CConnman& EnsureConnman(const node::NodeContext& node);
PeerManager& EnsurePeerman(const node::NodeContext& node);
+AddrMan& EnsureAddrman(const node::NodeContext& node);
+AddrMan& EnsureAnyAddrman(const std::any& context);
#endif // BITCOIN_RPC_SERVER_UTIL_H