Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 0eef96e1c8c0dc1323d5f1d69f7874f21f4bc3ed
https://github.com/btcsuite/btcd/commit/0eef96e1c8c0dc1323d5f1d69f7874f21f4bc3ed
Author: David Hill <[email protected]>
Date: 2015-04-14 (Tue, 14 Apr 2015)
Changed paths:
M addrmgr/addrmanager.go
M addrmgr/addrmanager_test.go
M server.go
Log Message:
-----------
addrmgr: Always use a 50% chance between tried and new entries.
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.
This mimics Bitcoin Core commit c6a63ceeb4956933588995bcf01dc3095aaeb1fc