Browse Source

nMaxOutbound is MAX_OUTBOUND_CONNECTIONS on 0.13

Github-Pull: #8949
0.13
Wladimir J. van der Laan 8 years ago
parent
commit
0dbc48a5bd
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/net.cpp

2
src/net.cpp

@ -1715,7 +1715,7 @@ void ThreadOpenConnections()
continue; continue;
// only consider nodes missing relevant services after 40 failed attempts and only if less than half the outbound are up. // only consider nodes missing relevant services after 40 failed attempts and only if less than half the outbound are up.
if ((addr.nServices & nRelevantServices) != nRelevantServices && (nTries < 40 || nOutbound >= (nMaxOutbound >> 1))) if ((addr.nServices & nRelevantServices) != nRelevantServices && (nTries < 40 || nOutbound >= (MAX_OUTBOUND_CONNECTIONS >> 1)))
continue; continue;
// do not allow non-default ports, unless after 50 invalid addresses selected already // do not allow non-default ports, unless after 50 invalid addresses selected already

Loading…
Cancel
Save