Channel Jamming
Locking up liquidity with payments that never settle, blocking other payments from routing through a node.
Basically
Channel jamming blocks Lightning payments by tying up money or payment slots. The attacker can later reclaim their funds, while honest payment routing suffers.
Key Takeaways
- Channel jamming exploits free failed Lightning payments. An attacker can lock up channel liquidity and HTLC slots across the network by sending payments that never settle.
- Two variants exist: liquidity jamming uses large payments to consume channel capacity, while slot jamming uses many tiny payments to fill the 483-slot HTLC limit per channel direction. Both reduce routing fee revenue for honest nodes.
- Channel jamming was a known vulnerability before the Lightning Network launched on mainnet, and no complete solution has been deployed. Leading proposals such as HTLC endorsement, upfront fees and reputation systems each involve significant tradeoffs.
What Is Channel Jamming?
Channel jamming is a denial-of-service attack against the Lightning Network that makes payment channels unusable by filling them with unresolved payments. The attacker routes payments through victim channels and deliberately holds them open, consuming either the channel's liquidity or its available HTLC slots. Failed Lightning payments incur no routing fees, so the attack costs nothing to execute and the attacker receives a full refund when the payments eventually time out.
Channel jamming is a routing attack that targets the economic incentives behind payment forwarding. Routing nodes invest capital in Lightning channels to earn fees, but a jammer can neutralise that investment at negligible cost. This asymmetry between attack cost and defender cost makes channel jamming one of the most discussed open problems in Lightning Network security.
How It Works
Channel jamming has two variants, each targeting a different resource constraint in Lightning channels. Both exploit the same mechanism: HTLCs that are sent but never settled.
Liquidity Jamming
Liquidity jamming, also called amount jamming, involves sending large payments through victim channels and refusing to finalise them. The attacker controls nodes at both ends of a route: one sends the payment and the other receives it without releasing the preimage. The channel capacity remains locked in pending HTLCs until the timelock expires.
A single payment can traverse up to 20 hops on Lightning, so an attacker can lock up roughly 20 times their capital across the network. The attacker recovers their full balance when the timelock expires and the payment fails, then can repeat the attack immediately.
Slot Jamming
Slot jamming targets the HTLC slot limit rather than the channel balance. The BOLT specification allows each channel direction to hold a maximum of 483 concurrent in-flight HTLCs. This limit keeps a commitment transaction small enough to remain valid on-chain, because each pending HTLC adds an output to that transaction.
The attacker sends 483 minimum-value payments through a victim channel, filling every available slot. No further payments can use the channel until the existing HTLCs resolve, even though each payment is tiny. Slot jamming is generally cheaper than liquidity jamming because it requires only 483 × min_htlc_value in capital rather than the full channel balance.
Attack Economics
Research by Gleb Naumenko and Antoine Riard quantified the costs. Jamming a small routing node with fewer than six channels costs approximately 156 sats to open the attacking channel plus roughly 200 sats per month in opportunity cost, while jamming a well-connected node with over 200 channels costs about 5,200 sats in opening costs and 6,700 sats per month. Degrading network-wide payment success by targeting approximately 20% of channels costs between 80,000 and 480,000 sats in opening fees.
Why It Matters
Channel jamming threatens the viability of Lightning as a scalable payment network. Routing nodes provide liquidity, forward payments and earn routing fees, so cheaply denying them revenue weakens the economic incentive to run routing infrastructure. The Lightning routing deep dive explains these routing economics in more detail.
Rival routing nodes could jam competitors' channels to capture their routing market share. This creates a perverse incentive where sabotaging competitors becomes a cheaper path to routing revenue than improving service quality.
Users face failed payments, longer route-finding and a worse experience when channels are jammed. An unsolved jamming problem also limits how much capital rational operators will commit to Lightning channels, constraining inbound liquidity across the network. Lightning's scalability limits are closely tied to whether these incentive problems can be resolved.
Impact on Routing Nodes
Targeted routing nodes face severe consequences. The impact spans several dimensions.
Proposed Solutions
The Lightning development community has proposed several mitigation strategies. No single approach has gained consensus, and each involves meaningful tradeoffs.
Upfront Fees
Upfront fees are the most direct solution: charge a small fee for every forwarded HTLC, regardless of whether the payment succeeds. This removes the assumption that failed payments are free and makes sustained jamming expensive. Research suggests that increasing total fees by just 2%, paid unconditionally, would fully compensate routing nodes under attack.
Honest users would also pay for failed payment attempts, which are a normal part of Lightning pathfinding. A proposed variant called "routing tokens" would give successful payments replacement tokens for future routing, so only persistent failures accumulate cost.
HTLC Endorsement
HTLC endorsement is the current leading candidate for near-term deployment, formalised as BLIP-4. Nodes track per-peer profitability and assign local reputation scores, marking HTLCs from profitable peers as "endorsed" and giving them priority access to channel resources. Unendorsed HTLCs receive best-effort service from a restricted resource pool.
An attacker must pay the target more in routing fees than it would have earned during normal operation to build enough reputation to fully occupy a channel's resources. As of 2025, LND supports relaying experimental endorsement signals, and Eclair has implemented per-peer reputation tracking. LDK is building observational support that logs mitigation decisions without enforcing them yet.
Circuit Breakers
Circuit breakers are software firewalls that sit in front of a routing node and apply per-peer limits on in-flight HTLCs. The CircuitBreaker tool, created by Joost Jager, implements rate limiting through token bucket algorithms with two modes: "fail" rejects excess HTLCs immediately, while "queue" buffers them. Circuit breakers are currently available for LND nodes and provide immediate per-node protection without requiring network-wide protocol changes.
Stake Certificates
Stake certificates, proposed by Naumenko and Riard, require senders to prove UTXO ownership when routing payments. This raises the Sybil cost for attackers because acquiring enough UTXOs to sustain a jamming attack becomes expensive. Privacy is the main concern: linking payments to on-chain UTXOs could deanonymise senders and undermine the privacy benefits of onion routing.
Reducing HTLC Slot Limits
Reducing the default max_accepted_htlcs from 483 to a lower value is a pragmatic short-term mitigation. Eclair already defaults to 30 HTLCs per channel direction, and the LND project is actively discussing a reduction to approximately 30 to 113 slots. Real-world routing rarely needs more than 30 to 50 concurrent in-flight HTLCs, so a reduced limit has minimal impact on honest users while making slot jamming significantly more expensive.
Fundamental Protocol Tension
Lightning was designed so that failed payments cost nothing. This property benefits honest users because pathfinding involves trial and error, and free failures encourage experimentation with routes. Any solution that adds cost to failures changes a core protocol property and risks worsening the user experience for legitimate payments.
Coordination Challenge
Solutions such as HTLC endorsement require adoption across multiple implementations, including LND, Core Lightning, Eclair and LDK, to be effective network-wide. Partial adoption provides only partial protection because attackers can route through non-participating nodes. This coordination problem slows deployment even when technical consensus exists.
Privacy Tradeoffs
Several proposed mitigations, including stake certificates and reputation tracking, require nodes to learn more about payment senders. This conflicts with Lightning's privacy model, which relies on onion routing and blinded paths to keep payment details confidential. Solutions that improve jamming resistance at the cost of sender privacy may push users towards more centralised custodial services.
Layer 2 Alternatives
The persistence of the jamming problem is one motivation for exploring alternative Layer 2 architectures. Protocols like Spark use different off-chain constructions that do not rely on multi-hop HTLC routing, avoiding the jamming attack surface entirely. Channel jamming also helps explain why the Bitcoin Layer 2 ecosystem continues to diversify beyond Lightning.
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.