aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-04-01 16:15:38 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-04-01 16:17:13 +0200
commitf7dea1cba78454f55fa0eb379737cd5c8a26237a (patch)
tree7e2a5911e891300053c92be46248b0010daffd96 /src/net.cpp
parent41113e33ad62333d99fd8cc6bf717c0794681d86 (diff)
parent1d21ba2f5ecbf03086d0b65c4c4c80a39a94c2ee (diff)
downloadbitcoin-f7dea1cba78454f55fa0eb379737cd5c8a26237a.tar.xz
Merge pull request #5941
1d21ba2 Scale up addrman (Pieter Wuille) c6a63ce Always use a 50% chance to choose between tried and new entries (Pieter Wuille) f68ba3f Do not bias outgoing connections towards fresh addresses (Pieter Wuille) a8ff7c6 Simplify hashing code (Pieter Wuille) e6b343d Make addrman's bucket placement deterministic. (Pieter Wuille) b23add5 Switch addrman key from vector to uint256 (Pieter Wuille)
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 11c2cd07d9..48e6367f20 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1221,8 +1221,7 @@ void ThreadOpenConnections()
int nTries = 0;
while (true)
{
- // use an nUnkBias between 10 (no outgoing connections) and 90 (8 outgoing connections)
- CAddress addr = addrman.Select(10 + min(nOutbound,8)*10);
+ CAddress addr = addrman.Select();
// if we selected an invalid address, restart
if (!addr.IsValid() || setConnected.count(addr.GetGroup()) || IsLocal(addr))