diff options
| author | Pieter Wuille <[email protected]> | 2015-03-05 04:01:22 -0800 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-06-27 14:15:32 +0000 |
| commit | b8ad0859552ac9f64b790606fd84c76538e318a5 (patch) | |
| tree | e5bf7520f931ddfa844929b109efbe84ac162eb9 /src/addrman.cpp | |
| parent | Limit message sizes before transfer (diff) | |
| download | discoin-b8ad0859552ac9f64b790606fd84c76538e318a5.tar.xz discoin-b8ad0859552ac9f64b790606fd84c76538e318a5.zip | |
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 3628af2ea..79545e13c 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -279,8 +279,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) |