Reduce fingerprinting through timestamps in 'addr' messages.

Suggested by Jonas Nick.
This commit is contained in:
Pieter Wuille
2015-03-05 04:01:22 -08:00
parent d734d87b28
commit 9c2737901b
2 changed files with 18 additions and 6 deletions

View File

@@ -272,8 +272,9 @@ void CAddrMan::Good_(const CService& addr, int64_t nTime)
// update info
info.nLastSuccess = nTime;
info.nLastTry = nTime;
info.nTime = nTime;
info.nAttempts = 0;
// nTime is not updated here, to avoid leaking information about
// currently-connected peers.
// if it is already in the tried set, don't do anything else
if (info.fInTried)