diff options
| author | tv <tv@krebsco.de> | 2026-10-31 06:51:17 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 06:51:17 +0100 |
| commit | 7feea90e195cec3e99d294fa518f9a9e4ebeebcb (patch) | |
| tree | c2f8e6cc1ca245a9a0f1c29711e4abbcb75aff7b /src/transport/mod.rs | |
| parent | bef59234ea3e219d80373d760601ba40f4789a47 (diff) | |
calculate peer clock drift
Diffstat (limited to 'src/transport/mod.rs')
| -rw-r--r-- | src/transport/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 9a82cbe..1ce4cd1 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -880,6 +880,13 @@ pub(crate) trait Transport: Send + Sync { None } + /// How far `peer`'s clock is ahead of ours, as its PONGs say (`paths::ClockOffset`): + /// the narrowest bound of its paths. By default unknown. + fn clock_offset(&self, peer: &str) -> Option<paths::ClockOffset> { + let _ = peer; + None + } + /// Whether the transport answers PINGs with PONGs itself (the paths layer, /// `transport::paths`); if not (a bare transport, in tests), the node does. By /// default not. |
