[addrman] Improve collision logging and address nits

This commit is contained in:
Suhas Daftuar
2019-03-01 16:15:50 -05:00
parent f71fdda3bc
commit 20e6ea259b
2 changed files with 4 additions and 4 deletions

View File

@@ -1765,12 +1765,12 @@ void CConnman::ThreadOpenConnections(const std::vector<std::string> connect)
addr = addrman.Select(fFeeler);
}
// Require outbound connections to be to distinct network groups
// Require outbound connections, other than feelers, to be to distinct network groups
if (!fFeeler && setConnected.count(addr.GetGroup())) {
break;
}
// if we selected an invalid address, restart
// if we selected an invalid or local address, restart
if (!addr.IsValid() || IsLocal(addr)) {
break;
}