diff options
author | stratospher <44024636+stratospher@users.noreply.github.com> | 2023-10-03 19:37:56 +0530 |
---|---|---|
committer | stratospher <44024636+stratospher@users.noreply.github.com> | 2023-10-04 08:53:51 +0530 |
commit | e6e444c06cbf09380f9924dff3d21c1be15d1753 (patch) | |
tree | 996404bb43c2c5481a437431404afde07be9b215 /src/rpc/server_util.h | |
parent | bf589a50a0d6a7b94f1ba1ddf24a1497fd35ad44 (diff) | |
download | bitcoin-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.h | 3 |
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 |