diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-05 04:01:22 -0800 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-03-17 16:39:10 +0100 |
commit | ca301bf98c5929e19abf63773b29b7a53a327e41 (patch) | |
tree | 3165ccb3527e237e5984d7cb50ec6ca863a586eb /src/addrman.cpp | |
parent | 2c0840631d560c5621063d163728932212e8db60 (diff) | |
download | bitcoin-ca301bf98c5929e19abf63773b29b7a53a327e41.tar.xz |
Reduce fingerprinting through timestamps in 'addr' messages.
Suggested by Jonas Nick.
Rebased-From: 9c2737901b5203f267d21d728019d64b46f1d9f3
Github-Pull: #5860
Diffstat (limited to 'src/addrman.cpp')
-rw-r--r-- | src/addrman.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp index 1982db52ae..e4e001348e 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) |