nLastTry is only used for addrman entries

No need to define it for every CAddress, as it's memory only anyway.
This commit is contained in:
Pieter Wuille
2015-04-19 11:10:13 -07:00
parent 8f955b9661
commit 1d5b47a903
5 changed files with 10 additions and 13 deletions

View File

@@ -1221,7 +1221,7 @@ void ThreadOpenConnections()
int nTries = 0;
while (true)
{
CAddress addr = addrman.Select();
CAddrInfo addr = addrman.Select();
// if we selected an invalid address, restart
if (!addr.IsValid() || setConnected.count(addr.GetGroup()) || IsLocal(addr))