diff options
author | John Newbery <john@johnnewbery.com> | 2020-10-23 10:17:45 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-03-20 10:24:40 +0000 |
commit | 392a95d393a9af01b53e5e68197e81968efb84fc (patch) | |
tree | 9d66e72b186b75a3fb17604ceac26d3de43c6fba /src/net_processing.h | |
parent | 1c25adf6d278eb1a1f018986a126d0eb8137e0ee (diff) |
[net_processing] Keep addrman reference in PeerManager
Diffstat (limited to 'src/net_processing.h')
-rw-r--r-- | src/net_processing.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index f6f2d73721..4556d32377 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -10,6 +10,7 @@ #include <sync.h> #include <validationinterface.h> +class CAddrMan; class CChainParams; class CTxMemPool; class ChainstateManager; @@ -36,9 +37,9 @@ struct CNodeStateStats { class PeerManager : public CValidationInterface, public NetEventsInterface { public: - static std::unique_ptr<PeerManager> make(const CChainParams& chainparams, CConnman& connman, BanMan* banman, - CScheduler& scheduler, ChainstateManager& chainman, CTxMemPool& pool, - bool ignore_incoming_txs); + static std::unique_ptr<PeerManager> make(const CChainParams& chainparams, CConnman& connman, CAddrMan& addrman, + BanMan* banman, CScheduler& scheduler, ChainstateManager& chainman, + CTxMemPool& pool, bool ignore_incoming_txs); virtual ~PeerManager() { } /** Get statistics from node state */ |