lnd/docs
Olaoluwa Osuntokun 8b471eadeb
discovery: enforce non-zero timestamp in gossip messages
In this commit, we add validation for channel updates and node
announcements to ensure that we reject gossip messages with zero
timestamps at the discovery layer.

From BOLT 7:
  "MUST set timestamp to greater than 0, AND to greater than any
  previously-sent channel_update for this short_channel_id."

This validation is performed in the gossip handlers (handleNodeAnnouncement
and handleChanUpdate) rather than at the wire protocol level. This approach
ensures we can still decode messages from disk or embedded in onion errors
while rejecting invalid gossip from peers.

Remote peers sending zero-timestamp gossip will have their ban score
incremented.

(cherry picked from commit cad1b957bf)
2026-01-12 14:05:21 +01:00
..
alloy-models docs/alloy-model: add linear fee function model 2024-08-01 17:42:31 -07:00
grpc Update ruby.md 2024-12-06 13:48:22 +01:00
release-notes discovery: enforce non-zero timestamp in gossip messages 2026-01-12 14:05:21 +01:00
rest multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
benchmark_perf_loop.md docs: add docs explaining usage of pprof+benchmarks to optimize 2025-09-24 11:52:01 -07:00
code_contribution_guidelines.md docs: add development_guidelines.md 2025-04-14 17:08:56 +08:00
configuring_tor.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
db_migration_guide.md docs: added a user guide for db migration 2025-10-27 11:55:07 -07:00
debugging_lnd.md chore: fix some typos 2025-01-03 21:48:29 +08:00
development_guidelines.md docs: explain what "visual symmetry" means 2025-08-04 16:34:18 +02:00
DOCKER.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
estimate_route_fee.md docs: update api documentation for estimateRouteFee 2025-12-12 10:10:40 +01:00
etcd.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
fuzz.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
gossip_rate_limiting.md docs: update gossip rate limiting doc 2025-08-04 15:55:11 +08:00
INSTALL.md build: update CI+release version to Go 1.25.3 2025-10-21 14:32:44 -03:00
key_import.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
leader_election.md docs: fix leader node readiness probe example [skip ci] 2024-07-29 21:31:24 +02:00
macaroons.md docs: document deterministic macaroons, add release notes 2024-10-15 09:48:47 +02:00
MAKEFILE.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
musig2.md Update link in musig2.md 2024-10-02 10:17:16 -07:00
nat_traversal.md scripted-diff: replace ⛰ emoji with $ [skip ci] 2022-10-28 12:06:49 -04:00
postgres.md lncfg+scripts: use configurable global lock for postgres backends 2025-11-28 09:36:34 +01:00
psbt.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
recovery.md [docs] Typo recovery.md 2025-10-22 13:30:58 +02:00
release.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
remote-signing.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
review.md docs: add development_guidelines.md 2025-04-14 17:08:56 +08:00
ruby-thing.rb docs: update contribution guidelines to add section on commit structure 2018-12-18 20:59:46 -08:00
safety.md Merge pull request #8881 from mwaite-codes/fix-doc-grammar 2024-07-23 00:25:17 -06:00
signing_release_candidate.md docs: fix build instructions doc url 2025-10-21 17:32:24 -07:00
SphinxReplayDB.md docs: add sphinx replay description 2025-06-13 15:37:03 +02:00
sqlite.md docs: add sqlite instructions 2023-01-25 14:16:56 +02:00
wallet.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
watchtower.md multi: Fix typos and grammar in multiple docs 2024-07-22 20:08:12 -07:00
zero_conf_channels.md docs: add documentation for zero-conf channels 2022-08-10 14:25:11 -04:00