Skip to content

Commit

Permalink
Do not bias outgoing connections towards fresh addresses
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sipa authored and laanwj committed Apr 1, 2015
1 parent 2218d4b commit 214154e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/addrman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 214154e

Please sign in to comment.