CConnman::ShouldRunInactivityChecks

Return true if we should disconnect the peer for failing an inactivity check.

Synopsis

Declared in <net.h>

bool
ShouldRunInactivityChecks(
    CNode const& node,
    NodeClock::time_point now) const;

Return Value

true if the peer should be disconnected for inactivity.

Parameters

NameDescription
nodethe peer to check.
nowthe current time.