From 0dbc48a5bd831816870940287dc1131b30cf613d Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 19 Oct 2016 11:48:23 +0200 Subject: nMaxOutbound is MAX_OUTBOUND_CONNECTIONS on 0.13 Github-Pull: #8949 --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/net.cpp b/src/net.cpp index 9bfdb9bc2e..06fc3fdb85 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1715,7 +1715,7 @@ void ThreadOpenConnections() continue; // 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; // do not allow non-default ports, unless after 50 invalid addresses selected already -- cgit v1.2.3