mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user