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:
parent
9eac43a8bb
commit
5b8f33390c
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue