aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-03-17 16:23:00 +0100
committerWladimir J. van der Laan <[email protected]>2015-03-17 16:38:06 +0100
commit93a8c46807a8b9c98e536ccd21ecdb11b9b3cf52 (patch)
tree0898a06bb3ca73ded1b6eb7e9d7afd8454795186 /src/addrman.cpp
parentMerge pull request #5915 (diff)
parentReduce fingerprinting through timestamps in 'addr' messages. (diff)
downloaddiscoin-93a8c46807a8b9c98e536ccd21ecdb11b9b3cf52.tar.xz
discoin-93a8c46807a8b9c98e536ccd21ecdb11b9b3cf52.zip
Merge pull request #5860
9c27379 Reduce fingerprinting through timestamps in 'addr' messages. (Pieter Wuille)
Diffstat (limited to 'src/addrman.cpp')
-rw-r--r--src/addrman.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp
index 1e08ae772..4b7e4d51b 100644
--- a/src/addrman.cpp
+++ b/src/addrman.cpp
@@ -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)