diff --git a/zebra-network/src/meta_addr.rs b/zebra-network/src/meta_addr.rs index 06fe2a0c7..9b323ee3e 100644 --- a/zebra-network/src/meta_addr.rs +++ b/zebra-network/src/meta_addr.rs @@ -238,6 +238,11 @@ impl MetaAddr { self.last_seen } + /// Set the last time we interacted with this peer. + pub(crate) fn set_last_seen(&mut self, last_seen: DateTime32) { + self.last_seen = last_seen; + } + /// Is this address a directly connected client? pub fn is_direct_client(&self) -> bool { match self.last_connection_state {