Channel Update (Lightning Gossip)

A gossip message carrying a node's current fees and routing policy for one channel direction.

Basically

A channel update is a message that shares the fees and rules for sending a Lightning payment in one direction along part of its route. Wallets use these messages to work out a suitable path.

Key Takeaways

  • A channel_update is a BOLT 7 gossip message (type 258) that each channel partner broadcasts to advertise its routing fees, HTLC limits, and CLTV expiry delta for one direction of a channel.
  • Routing nodes rely on channel_update data to calculate payment paths. The base fee, proportional fee rate, and timelock requirements in each update feed directly into pathfinding algorithms.
  • Frequent or unnecessary updates create gossip spam that wastes bandwidth. Implementations therefore enforce rate limits, while tools like Rapid Gossip Sync compress the data for mobile clients.

What Is a Channel Update?

A channel_update is a signed message in the Lightning Network's gossip protocol that communicates the routing policy for one direction of a payment channel. BOLT 7 defines it, and it tells other nodes how much a channel partner charges to forward payments, what timelock margin it requires, and the minimum and maximum HTLC sizes it will accept.

Every public channel has two directions: one from node A to node B, and another from node B to node A. Each node independently broadcasts its own channel_update for the direction it controls. A single channel therefore produces at least two channel_update messages, and nodes across the network store both to build a complete picture of the routing graph.

Remote nodes would have no way to calculate valid payment routes without channel_update messages. The Lightning routing system depends entirely on the fee and policy data these updates provide.

How It Works

A node constructs a channel_update message when it opens a public channel or changes its forwarding policy, signs it with its node key, and floods it to peers. Each peer validates the signature, checks whether the update is newer than what it already has by using the timestamp field, and relays it onward if valid.

Message Fields

The channel_update message (type 258) contains fields that each carry specific routing information. These fields describe the rules for forwarding a payment through one direction of a channel.

Key Fields Explained

The channel_flags bitfield serves two purposes. Bit 0 indicates the direction of the update: whether it applies to node 1 forwarding toward node 2, or vice versa. Bit 1 is the disable flag, which signals that the channel is temporarily unavailable for routing, and nodes set it when a peer goes offline or when they want to stop routing through that channel.

The fee fields define the cost of forwarding an HTLC through this channel direction. You calculate the total routing fee as base fee + (payment amount * proportional rate / 1,000,000).

A channel with a base fee of 1,000 msat (1 sat) and a proportional rate of 100 (0.01%) would charge 1,100 msat to forward a 100,000 msat payment. The calculation is 1,000 + (100,000 * 100 / 1,000,000) = 1,100 msat.

The cltv_expiry_delta specifies the minimum difference in block height between an incoming and outgoing HTLC's timelock. If a forwarding node receives an incoming HTLC with a CLTV expiry of 800,000 and its delta is 40, the outgoing HTLC's expiry must be no later than block 799,960, giving the node time to claim funds on-chain if necessary. Common defaults range from 34 blocks (Core Lightning) to 80 blocks (LND) to 144 blocks (Eclair).

Timestamps and Replacement

Each channel_update includes a Unix timestamp. A node that receives a new update for the same channel direction keeps the one with the higher timestamp and discards the older one. The network therefore converges on the most recent policy.

Channels whose most recent update is older than approximately two weeks are pruned from the routing graph. Nodes must therefore periodically rebroadcast their channel_update even if nothing has changed, just to keep the channel visible. These keep-alive updates carry identical policy data with only a refreshed timestamp and account for a significant portion of all gossip traffic.

Why It Matters

Channel_update messages are the foundation of Lightning payment routing. A wallet reads the fee and CLTV data from channel_update messages stored in its local routing graph every time it constructs a payment path. Payments fail without accurate, up-to-date channel updates because senders calculate incorrect fees or timelocks.

Routing node operators use channel_update messages as the primary tool for managing their business. They adjust fees to attract or discourage traffic, set HTLC limits to manage channel capacity, and disable channels that need maintenance.

Layer 2 solutions like Spark take a different approach by avoiding the channel-based architecture entirely. Spark uses statechains (vUTXOs) instead of payment channels, so it needs no channel_update gossip. That removes a significant source of bandwidth overhead and routing complexity.

Fee-Based Routing Optimisation

Routing nodes use channel_update messages to implement dynamic fee strategies. A node with imbalanced channels can raise fees on the depleted side and lower fees on the full side, encouraging traffic that rebalances liquidity naturally. The forwarding policy expressed in each update directly shapes which payments the network routes through that channel.

Channel Availability Signalling

A node broadcasts a channel_update with the disable bit set in channel_flags when a channel peer goes offline or the node needs to perform maintenance. The update tells the network to stop routing through that channel. A new update with the disable bit cleared restores the channel to the routing graph when it is ready again.

Pathfinding Input

Pathfinding algorithms consume channel_update data to calculate the cheapest or fastest route for a payment. The fee fields determine cost, the HTLC min/max fields determine whether the payment amount fits, and the CLTV delta determines the total timelock budget needed for the route. Wallets weigh these factors to choose optimal paths through multi-hop routes.

Network Graph Construction

Every Lightning node maintains a local copy of the network graph built from gossip messages. The channel_announcement message establishes that a channel exists, while channel_update messages fill in the routing parameters. Together, these two message types let any node on the network compute routes to any other node without relying on a central directory.

Gossip Spam and Bandwidth

Channel_update messages are flooded across the entire network, and every node that receives a valid update relays it to all its peers. A network with thousands of channels therefore creates substantial bandwidth consumption. Research has found that keep-alive updates with identical content and a refreshed timestamp account for roughly 45% of all channel_update traffic, adding overhead without conveying new routing information.

Implementations enforce rate limits to manage this overhead. Core Lightning allows approximately one channel_update per channel per day on average, with a burst allowance of up to four. Other implementations take different approaches: some enforce strict limits while others rely on nodes to self-regulate.

Mobile Client Overhead

Mobile Lightning wallets face a particular challenge with channel_update gossip. Syncing the full routing graph requires downloading and processing thousands of updates, which consumes battery and bandwidth. Solutions like Rapid Gossip Sync compress the gossip data into a compact snapshot that mobile clients can download from a server, trading some trust assumptions for dramatically reduced sync times, and the research on Lightning gossip bandwidth and mobile scaling examines this tradeoff in more depth.

Stale Data and Payment Failures

A sender whose local graph contains outdated channel_update data may construct routes with incorrect fees or timelocks, and the forwarding node will reject the HTLC because it doesn't match the current policy. The payment then fails, and the sender must re-route, adding latency. Frequent channel closures and policy changes exacerbate this problem.

Channel Flapping

Nodes with unreliable connections, particularly those running over Tor, can cause rapid alternation between enabled and disabled states, with each toggle producing a new channel_update and creating a burst of gossip messages known as flapping. Studies have found that roughly 18% of public half-channels trigger rate-limiting rules at least once over a two-week period, largely due to intermittent connectivity. Other nodes cannot determine whether the channel is actually available, which degrades routing reliability.

Privacy Implications

Channel_update messages are public: anyone monitoring the gossip network can see fee changes and channel availability in real time. These updates reveal information about a node's operational behaviour, including when it goes offline, when it adjusts fees, potentially signalling liquidity depletion, and which channels it prioritises. Private channels avoid this by not broadcasting gossip messages at all, though they sacrifice discoverability.

This 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.

0

← All 1876 glossary terms