diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-19 09:44:26 -0700 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-04-01 16:39:30 +0200 |
commit | 214154e6fc65bdc06fbfe1bc04b9b57347fdb3f7 (patch) | |
tree | c04221e41dc00c828322bd2d223443deb1cb9030 | |
parent | 2218d4bbe0a3ee38f5c8f8bba40ed326c1a6b5dd (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.
Rebased-From: 68ba3f67bd500a64fb8932c6b41924ddc31d76f
Github-Pull: #5941
-rw-r--r-- | src/addrman.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp index dfce09834c..df32da7257 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; |