Merge #8065: Addrman offline attempts

6182d10 Do not increment nAttempts by more than one for every Good connection. (Gregory Maxwell)
c769c4a Avoid counting failed connect attempts when probably offline. (Gregory Maxwell)
This commit is contained in:
Wladimir J. van der Laan
2016-06-08 12:58:21 +02:00
5 changed files with 31 additions and 17 deletions

View File

@@ -219,7 +219,7 @@ UniValue addnode(const UniValue& params, bool fHelp)
if (strCommand == "onetry")
{
CAddress addr;
OpenNetworkConnection(addr, NULL, strNode.c_str());
OpenNetworkConnection(addr, false, NULL, strNode.c_str());
return NullUniValue;
}