Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 2cc85ef428077085f479c6e05cdf11be29494dd7
      
https://github.com/btcsuite/btcd/commit/2cc85ef428077085f479c6e05cdf11be29494dd7
  Author: David Hill <[email protected]>
  Date:   2015-04-14 (Tue, 14 Apr 2015)

  Changed paths:
    M addrmgr/addrmanager.go
    M peer.go

  Log Message:
  -----------
  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


Reply via email to