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

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.

Created with MrDocs