Create a PeerManager instance wired to the node's networking and validation components.
Declared in <net_processing.h>
static
std::unique_ptr<PeerManager>
make(
CConnman& connman,
AddrMan& addrman,
BanMan* banman,
ChainstateManager& chainman,
CTxMemPool& pool,
node::Warnings& warnings,
Options opts);
A new peer manager instance.
| 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. |