Bitcoin ABC  0.26.3
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CompareNodeNetworkTime Struct Reference

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

Detailed Description

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.

Definition at line 988 of file net.cpp.

Constructor & Destructor Documentation

◆ CompareNodeNetworkTime()

CompareNodeNetworkTime::CompareNodeNetworkTime ( bool  is_local,
Network  network 

Definition at line 991 of file net.cpp.

Member Function Documentation

◆ operator()()

bool CompareNodeNetworkTime::operator() ( const NodeEvictionCandidate a,
const NodeEvictionCandidate b 
) const

Definition at line 993 of file net.cpp.

Member Data Documentation

◆ m_is_local

const bool CompareNodeNetworkTime::m_is_local

Definition at line 989 of file net.cpp.

◆ m_network

const Network CompareNodeNetworkTime::m_network

Definition at line 990 of file net.cpp.

The documentation for this struct was generated from the following file: