mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-15 07:03:40 +01:00
p2p: remove unused CompareOnionTimeConnected()
This commit is contained in:
@@ -848,12 +848,6 @@ static bool CompareLocalHostTimeConnected(const NodeEvictionCandidate &a, const
|
|||||||
return a.nTimeConnected > b.nTimeConnected;
|
return a.nTimeConnected > b.nTimeConnected;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool CompareOnionTimeConnected(const NodeEvictionCandidate& a, const NodeEvictionCandidate& b)
|
|
||||||
{
|
|
||||||
if (a.m_is_onion != b.m_is_onion) return b.m_is_onion;
|
|
||||||
return a.nTimeConnected > b.nTimeConnected;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool CompareNetGroupKeyed(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) {
|
static bool CompareNetGroupKeyed(const NodeEvictionCandidate &a, const NodeEvictionCandidate &b) {
|
||||||
return a.nKeyedNetGroup < b.nKeyedNetGroup;
|
return a.nKeyedNetGroup < b.nKeyedNetGroup;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user