|
|
@ -1233,8 +1233,6 @@ void ThreadOpenConnections2(void* parg) |
|
|
|
if (fShutdown) |
|
|
|
if (fShutdown) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
bool fAddSeeds = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add seed nodes if IRC isn't working
|
|
|
|
// Add seed nodes if IRC isn't working
|
|
|
|
bool fTOR = (fUseProxy && addrProxy.GetPort() == 9050); |
|
|
|
bool fTOR = (fUseProxy && addrProxy.GetPort() == 9050); |
|
|
|
if (addrman.size()==0 && (GetTime() - nStart > 60 || fTOR) && !fTestNet) |
|
|
|
if (addrman.size()==0 && (GetTime() - nStart > 60 || fTOR) && !fTestNet) |
|
|
@ -1260,7 +1258,6 @@ void ThreadOpenConnections2(void* parg) |
|
|
|
// Choose an address to connect to based on most recently seen
|
|
|
|
// Choose an address to connect to based on most recently seen
|
|
|
|
//
|
|
|
|
//
|
|
|
|
CAddress addrConnect; |
|
|
|
CAddress addrConnect; |
|
|
|
int64 nBest = std::numeric_limits<int64>::min(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Only connect to one address per a.b.?.? range.
|
|
|
|
// Only connect to one address per a.b.?.? range.
|
|
|
|
// Do this here so we don't have to critsect vNodes inside mapAddresses critsect.
|
|
|
|
// Do this here so we don't have to critsect vNodes inside mapAddresses critsect.
|
|
|
|