lbcd/addrmgr
David Hill 2cc85ef428 Reduce fingerprinting.
This change reduces fingerprinting via timestamps in addr messages.
Previously, the last seen time for an address was updated when
certain protocol commands were received.  Now, the last seen time
is set when the peer disconnects if the peer had sent a verack
message and was connected for more than 20 minutes.

This mimics Bitcoin Core commit:
9c2737901b5203f267d21d728019d64b46f1d9f3

Also, add additional sanity checking before updating the peer's
timestamp.  These include:

 - Do not mark a peer as connected if we never received
   a version message.
 - Disconnect a peer for sending a verack before btcd
   sent a version
 - Disconnect a peer for sending multiple verack's
2015-04-14 12:38:41 -04:00
..
addrmanager.go Reduce fingerprinting. 2015-04-14 12:38:41 -04:00
addrmanager_test.go addrmgr: Always use a 50% chance between tried and new entries. 2015-04-14 12:28:45 -04:00
cov_report.sh First round of address manager package refactor 2014-07-07 09:04:22 -05:00
doc.go First round of address manager package refactor 2014-07-07 09:04:22 -05:00
knownaddress.go addrmgr: Do not bias toward fresh addresses. 2015-04-14 11:21:57 -04:00
log.go Update btclog import paths to new location. 2015-01-16 11:42:25 -06:00
network.go Update btcwire path import paths to new location. 2015-02-05 15:16:39 -06:00
network_test.go Update btcwire path import paths to new location. 2015-02-05 15:16:39 -06:00
test_coverage.txt Add more reserved IP space to address manager. 2014-12-16 13:02:39 -05:00