aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2015-03-19 09:44:26 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2015-03-23 17:23:40 -0700
commitf68ba3f67bd500a64fb8932c6b41924ddc31d76f (patch)
treee3a16852cb0e0f89f423357745fbee8bc3a3a129 /src/addrman.cpp
parenta8ff7c62edc63c7c94bc91c30b80995539ed7477 (diff)
Do not bias outgoing connections towards fresh addresses
This change was suggested as Countermeasure 2 in Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman, Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report 2015/263. March 2015.
Diffstat (limited to 'src/addrman.cpp')
-rw-r--r--src/addrman.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp
index 05688fbdf0..eb431ec59c 100644
--- a/src/addrman.cpp
+++ b/src/addrman.cpp
@@ -63,8 +63,6 @@ double CAddrInfo::GetChance(int64_t nNow) const
if (nSinceLastTry < 0)
nSinceLastTry = 0;
- fChance *= 600.0 / (600.0 + nSinceLastSeen);
-
// deprioritize very recent attempts away
if (nSinceLastTry < 60 * 10)
fChance *= 0.01;