---
title: "Gossip Protocol (Lightning) — definition | Nuri Glossary"
description: "How Lightning nodes tell each other which channels exist and what they charge, without a central directory."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/gossip-protocol"
---

# Gossip Protocol (Lightning)

How Lightning nodes tell each other which channels exist and what they charge, without a central directory.

## Basically

Lightning nodes use the gossip protocol to share details about channels, nodes and fee policies with each other.

## Key Takeaways

- The gossip protocol is how Lightning nodes discover the network: every public channel, node address and fee policy is broadcast peer-to-peer using three message types defined in BOLT #7.
- Gossip uses naive flood-fill propagation: when a node receives a valid message it has not seen before, it forwards it to all peers. The simplicity ensures reliability but creates significant bandwidth overhead as the network grows.
- Without gossip, nodes cannot route payments: onion routing requires a local copy of the network graph, and gossip is the only mechanism that builds it.

## What Is the Gossip Protocol?

The gossip protocol is the peer-to-peer messaging system that Lightning Network nodes use to share the network's topology. BOLT #7, the "P2P Node and Channel Discovery" specification, defines it. It lets every node build a local map of all public channels, their routing policies and the nodes that operate them.
The protocol takes its name from the way information spreads through a social network. Each node tells its peers about new channels and policy changes, and those peers pass them on until the entire network has the update. The flood-fill method is simple and reliable, but every node must process every public update, so bandwidth costs rise with the size of the network.
Gossip has one critical purpose: enabling pathfinding. A sender needs a route through the channel graph to pay a receiver. Without gossip, nodes would know only about their own channels, and multi-hop payments would be impossible.

## How It Works

Three message types describe the network in the gossip protocol. Together, they give a node everything it needs to build its local channel graph and calculate payment routes.

## channel_announcement (Type 256)

A channel_announcement announces a new public channel to the network. It is approximately 430 bytes and needs cooperative signatures from both channel peers, plus signatures from their Bitcoin funding keys.
Nodes validate channel announcements by checking that the referenced UTXO exists on-chain as a P2WSH output with at least 6 confirmations and that all four signatures are valid. On-chain proof prevents spam because you cannot announce a channel without locking real Bitcoin into it.

## node_announcement (Type 257)

A node_announcement advertises a node's alias, colour, network addresses and supported features. A node can broadcast it only if at least one channel_announcement already references that node, which stops unauthenticated nodes from flooding the network.
Each node_announcement supersedes the previous one from the same node. Nodes use the timestamp field to identify the current announcement and discard older versions.

## channel_update (Type 258)

The channel_update is the most frequently sent gossip message. Each channel peer independently broadcasts one for its direction of the channel, advertising its routing fees, CLTV delta and HTLC size limits.
Each channel has two channel_updates, one per direction, and they change whenever a node adjusts its fee policy. Channel updates account for roughly 60% of all gossip traffic, while node announcements make up another 30%.

## Propagation Mechanics

A node queues a valid gossip message it has not seen before for forwarding to all other peers. The specification recommends batching outgoing gossip and flushing once every 60 seconds, which naturally limits rates and reduces per-message overhead. A new channel_update reaches approximately 75% of the network within 200 seconds under this scheme.
Channels with no channel_update in either direction for two weeks (1,209,600 seconds) are stale and may be pruned from the graph. Nodes without any remaining channels are also pruned, which stops the graph from accumulating dead entries indefinitely.

## Bandwidth and Scaling

Gossip bandwidth is one of the Lightning Network's most significant scaling challenges. Every node must process every public gossip message, so the cost grows with the network.
Desktop and server nodes can manage this bandwidth. Mobile devices on cellular connections cannot practically download and validate tens of megabytes of gossip on every startup, which has driven the optimisation techniques described below.

## Gossip Filtering

BOLT #7 defines several query messages that let nodes request only the gossip they need instead of receiving the entire history. These queries reduce redundant data transfer.
Flood-fill propagation remains unchanged under these mechanisms. Every node still eventually receives every update.

## Rapid Gossip Sync

The LDK project introduced Rapid Gossip Sync, a semi-trusted optimisation for mobile and resource-constrained nodes. A server pre-validates gossip signatures and provides compressed delta snapshots. The initial graph download falls from ~53 MB to approximately 2 MB with gzip compression, and processing takes under 0.4 seconds on mobile devices.
The trade-off is trust because a malicious Rapid Gossip Sync server could omit channels or manipulate fee data to influence routing decisions. Full nodes still rely on standard gossip for authoritative graph construction for this reason.

## Rate Limiting

The specification requires strictly increasing timestamps for each message type per channel or node, limiting updates to at most one per second. Implementations enforce tighter limits in practice.

## Role in Pathfinding

Gossip is the sole input to Lightning pathfinding algorithms. Each node assembles a weighted directed graph where channels are edges and nodes are vertices, with edge weights derived from channel_update fields: base fee, proportional fee and CLTV delta. Pathfinding algorithms, typically modified Dijkstra or Yen's K-shortest paths, search this graph for the lowest-cost route to the destination.
Gossip does not include channel liquidity information, which is a critical limitation. A channel_update reveals maximum and minimum HTLC sizes, but not the balance available in each direction at any given moment. Senders must estimate liquidity through probing or probabilistic models and retry with alternative paths when payments fail; the Lightning routing deep dive explains how routing algorithms handle this uncertainty.
Private channels are excluded from gossip entirely. Nodes with only private channels include routing hints in their invoices so payers can construct the final hop without needing gossip data for those channels.

## Why It Matters

The gossip protocol determines how well the Lightning Network can scale as a payment system. Every public channel and policy change must reach every node, so gossip bandwidth grows linearly with the number of channels. A network aspiring to support millions of users faces a fundamental bottleneck.
Gossip quality directly affects routing success rates and revenue for node operators. A node with a stale or incomplete graph will attempt routes through disabled channels or use outdated fee estimates, leading to payment failures. A well-connected node with fresh gossip data can consistently find efficient routes.
Layer-2 protocols like Spark take a different approach to network coordination. Spark uses a statechain-based architecture where transfers happen directly between parties without multi-hop routing, rather than requiring every participant to maintain a full network graph. The design eliminates the need for gossip-driven pathfinding entirely.

## Taproot Gossip (Gossip 1.75)

A proposed upgrade introduces four new message types for Taproot channels: channel_announcement_2, node_announcement_2, channel_update_2 and announcement_signatures_2. Key changes replace Unix timestamps with block heights for better spam prevention, use BIP-340 Schnorr signatures with MuSig2 aggregation for one signature instead of four, and adopt pure TLV encoding for extensibility.

## Set Reconciliation

Researchers are exploring minisketch-based set reconciliation for gossip, inspired by the Erlay proposal for Bitcoin's transaction relay. Nodes would exchange compact sketches (~64 KB) to identify differences in their gossip sets and request only missing data instead of flood-filling every message. The approach could dramatically reduce bandwidth for a network with 100,000+ channels but faces challenges with rate-limiting inconsistencies across implementations; the scalability limits analysis covers Lightning's scaling trajectory in more detail.

## Bandwidth Scaling

The flood-fill model means gossip bandwidth grows linearly with the number of public channels. A network with 500,000 channels would require roughly 10x the current gossip volume. Mobile nodes and nodes in bandwidth-constrained environments, including emerging markets and satellite links, face increasingly difficult trade-offs between graph freshness and data costs.

## Graph Inconsistency

The gossip graph is not a consensus data structure. Different nodes may have different views of the network depending on which messages they have received, when they last synced and which peers they connect to. Two nodes attempting to route a payment may calculate completely different paths, and routing failures caused by stale data are common.

## Privacy Implications

All public channels are visible to every node on the network, including the node IDs and on-chain funding transactions. Gossip enables efficient routing but exposes channel relationships and on-chain footprints, creating a transparency trade-off. Nodes concerned about privacy can use private channels or blinded paths to reduce their gossip footprint; the Lightning privacy analysis covers the topic in detail.

## Eclipse Attacks

An attacker who controls all of a node's peers can feed it a manipulated gossip graph by omitting channels, injecting false fee data or hiding parts of the network. The eclipse attack could force the victim to route all payments through attacker-controlled nodes. Connecting to diverse, trusted peers and cross-referencing gossip data from multiple sources mitigates the risk.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
