Repository navigation
docs: document NTP clock sync requirement for gossip validation in ADR 001 - #106
Conversation
…R 001 Gossip validation silently drops NodeAnnounce messages from peers with >60s clock drift, but the NTP requirement was undocumented. Nodes with drifting clocks would be invisible to the mesh with no error feedback. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Documents the operational requirement for clock synchronization to ensure NodeAnnounce gossip validation (±60s timestamp_us freshness window) works reliably, preventing nodes from becoming effectively undiscoverable due to time drift.
Changes:
- Adds an explicit Clock synchronization section describing the failure mode of the ±60s freshness check.
- Updates the gossip validation description to cross-reference the new clock-sync guidance.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request updates the network ADR to clarify clock synchronization requirements for gossip validation. It introduces a new section emphasizing the necessity of NTP for node hosts and suggests a startup warning for clock offsets. The reviewer noted that using 'block.timestamp' as a reference for this warning is unreliable due to potential lag on Arbitrum and recommended using an NTP query or a trusted time API instead.
- Fix capitalization mismatch in cross-reference ("Clock Synchronization" → "Clock synchronization")
- Broaden requirement to cover receiver-side failure mode (validating clients + nodes, not just announcing nodes)
- Drop block.timestamp as suggested reference source (unreliable on Arbitrum due to L1 timestamp lag); recommend NTP query only
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
NodeAnnouncemessages whentimestamp_usdrifts >60s from the receiver's clock — a node with a drifting clock becomes invisible to the mesh with no error feedbackTest plan
🤖 Generated with Claude Code