AddrMan::Connected

We have successfully connected to this peer. Calling this function updates the CAddress's nTime, which is used in our IsTerrible() decisions and gossiped to peers. Callers should be careful that updating this information doesn't leak topology information to network spies.

Synopsis

Declared in <addrman.h>

void
Connected(
    CService const& addr,
    NodeSeconds time = Now<NodeSeconds>());

Description

net_processing calls this function when it disconnects from a peer to not leak information about currently connected peers.

Parameters

NameDescription
addr [in]The address of the peer we were connected to
time [in]The time that we were last connected to this peer