Add comment to describe purpose

Make it clear why all peers have the time offset applied to them.

Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
Janito Vaqueiro Ferreira Filho 2021-05-24 21:59:09 -03:00
parent 9eac43a8bb
commit 5b8f33390c
1 changed files with 1 additions and 0 deletions

View File

@ -372,6 +372,7 @@ fn limit_last_seen_times(addrs: &mut Vec<MetaAddr>, last_seen_limit: DateTime32)
.max()
.expect("unexpected empty address list");
// If any time is in the future, adjust all times, to compensate for clock skew on honest peers
if most_recent_reported_seen_timestamp > last_seen_limit.timestamp() {
let offset = most_recent_reported_seen_timestamp - last_seen_limit.timestamp();