[#PeerManager-make] = xref:PeerManager.adoc[PeerManager]::make :relfileprefix: ../ :mrdocs: Create a PeerManager instance wired to the node's networking and validation components. == Synopsis Declared in `<net_processing.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static std::unique_ptr<PeerManager> make( xref:CConnman.adoc[CConnman]& connman, xref:AddrMan.adoc[AddrMan]& addrman, xref:BanMan.adoc[BanMan]* banman, xref:ChainstateManager.adoc[ChainstateManager]& chainman, xref:CTxMemPool.adoc[CTxMemPool]& pool, xref:node/Warnings.adoc[node::Warnings]& warnings, xref:PeerManager/Options.adoc[Options] opts); ---- == Return Value A new peer manager instance. == Parameters [cols="1,4"] |=== | Name| Description | *connman* | The connection manager owning the peer connections. | *addrman* | The address manager tracking known peer addresses. | *banman* | The ban manager, or nullptr if banning is disabled. | *chainman* | The chainstate manager for the active chain. | *pool* | The transaction memory pool. | *warnings* | The node warnings collector. | *opts* | The options controlling peer manager behavior. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#