[#PeerManager-make]
= xref:PeerManager.adoc[PeerManager]::make
:relfileprefix: ../
:mrdocs:

Create a PeerManager instance wired to the node&apos;s networking and validation components&period;

== Synopsis

Declared in `&lt;net&lowbar;processing&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::unique&lowbar;ptr&lt;PeerManager&gt;
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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *connman*
| The connection manager owning the peer connections&period;
| *addrman*
| The address manager tracking known peer addresses&period;
| *banman*
| The ban manager, or nullptr if banning is disabled&period;
| *chainman*
| The chainstate manager for the active chain&period;
| *pool*
| The transaction memory pool&period;
| *warnings*
| The node warnings collector&period;
| *opts*
| The options controlling peer manager behavior&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
