Add missing comment in net.cpp
Missed in previous backports
This commit is contained in:
parent
5f68e06a07
commit
c8e04d43f7
@ -999,6 +999,7 @@ bool CConnman::AttemptToEvictConnection()
|
|||||||
// Reduce to the network group with the most connections
|
// Reduce to the network group with the most connections
|
||||||
std::vector<NodeEvictionCandidate> vEvictionNodes = mapAddrCounts[naMostConnections];
|
std::vector<NodeEvictionCandidate> vEvictionNodes = mapAddrCounts[naMostConnections];
|
||||||
|
|
||||||
|
// Do not disconnect peers if there is only 1 connection from their network group
|
||||||
if(vEvictionNodes.empty()) {
|
if(vEvictionNodes.empty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user