aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-10-19 11:48:23 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-10-19 11:50:15 +0200
commit0dbc48a5bd831816870940287dc1131b30cf613d (patch)
treea1e55eabec17768e1e046f9bb3c51c9a0c1d60af /src
parent53e6196a90a8503c5a79a3542421878bd6109a9d (diff)
downloadbitcoin-0dbc48a5bd831816870940287dc1131b30cf613d.tar.xz
nMaxOutbound is MAX_OUTBOUND_CONNECTIONS on 0.13
Github-Pull: #8949
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
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