PeerManager::make

Create a PeerManager instance wired to the node's networking and validation components.

Synopsis

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);

Return Value

A new peer manager instance.

Parameters

NameDescription
connmanThe connection manager owning the peer connections.
addrmanThe address manager tracking known peer addresses.
banmanThe ban manager, or nullptr if banning is disabled.
chainmanThe chainstate manager for the active chain.
poolThe transaction memory pool.
warningsThe node warnings collector.
optsThe options controlling peer manager behavior.