Bitcoin ABC 0.30.3
P2P Digital Currency
|
Sort eviction candidates by network/localhost and connection uptime. More...
Public Member Functions | |
CompareNodeNetworkTime (bool is_local, Network network) | |
bool | operator() (const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) const |
Public Attributes | |
const bool | m_is_local |
const Network | m_network |
Sort eviction candidates by network/localhost and connection uptime.
Candidates near the beginning are more likely to be evicted, and those near the end are more likely to be protected, e.g. less likely to be evicted.
is_local
and that do not belong to network
, sorted by increasing uptime (from most recently connected to connected longer).is_local
or belong to network
, sorted by increasing uptime.
|
inline |
|
inline |