feat(hosts): trusted wall time from the system clock or a peer; set observed_at

This commit is contained in:
2026-10-22 08:44:09 -07:00
parent 9f028743b5
commit 7c8d8b74e9
9 changed files with 633 additions and 251 deletions
+9
View File
@@ -219,6 +219,15 @@ impl<S: Store, T: Transport> Node<S, T> {
&self.store
}
/// Mutable access to the backing store.
///
/// Used by the host for the trusted-time state machine — peer-observation
/// time estimation (`LogStore::peer_time_estimate`) and, once trusted,
/// anchoring the wall clock (`LogStore::set_wall_clock`).
pub fn store_mut(&mut self) -> &mut S {
&mut self.store
}
/// Best-effort durability flush, advancing each stored observation's age
/// up to `now`.
///