2cc85ef428
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 |
||
---|---|---|
.. | ||
addrmanager.go | ||
addrmanager_test.go | ||
cov_report.sh | ||
doc.go | ||
knownaddress.go | ||
log.go | ||
network.go | ||
network_test.go | ||
test_coverage.txt |