Skip to content

Commit 214154e

Browse files
sipalaanwj
authored andcommitted
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: bitcoin#5941
1 parent 2218d4b commit 214154e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/addrman.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ double CAddrInfo::GetChance(int64_t nNow) const
6363
if (nSinceLastTry < 0)
6464
nSinceLastTry = 0;
6565

66-
fChance *= 600.0 / (600.0 + nSinceLastSeen);
67-
6866
// deprioritize very recent attempts away
6967
if (nSinceLastTry < 60 * 10)
7068
fChance *= 0.01;

0 commit comments

Comments
 (0)