You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gossip: NodeAnnounceBody.timestamp_us is a self-reported wall-clock value with no upper bound on skew accepted by the validation layer, enabling future-dated announces to permanently poison a peer-table entry #298
The validation module checks that timestamp_us is not too far in the past but does not reject announces whose timestamp is significantly ahead of the receiver's wall clock. A malicious node can publish an announce timestamped far in the future, blocking any genuine refresh from that node ID until wall-clock catches up.
This rejects announces whose timestamp is more than 60 seconds from the receiver's wall clock in either direction (past or future). The clock_skew_future_rejected test explicitly covers the future-dated scenario described in this issue.
A malicious node publishing a far-future timestamp will be rejected with AnnounceReject::ClockSkew before it ever reaches the peer table.
Activity
alpergundogdu commentedon Apr 24, 2026
Closing — this is already handled in the current codebase.
crates/gossip/src/validation.rscomputes an absolute difference between the receiver's clock and the announced timestamp:This rejects announces whose timestamp is more than 60 seconds from the receiver's wall clock in either direction (past or future). The
clock_skew_future_rejectedtest explicitly covers the future-dated scenario described in this issue.A malicious node publishing a far-future timestamp will be rejected with
AnnounceReject::ClockSkewbefore it ever reaches the peer table.