From 4855ff63536430b1cd26734a0eeeaf0c25df553e Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 06:51:17 +0100 Subject: calculate peer clock drift --- src/transport/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/transport/mod.rs') 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 { + 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. -- cgit v1.3.1