Lightning's Entropy Problem: Why the Network Cannot Route Its Way Out of Its Own Design
Last month, I instructed a Python simulator to route 10,000 payments through a synthetic replica of the Lightning Network. The graph was assembled from public gossip data: roughly 14,000 channels, 4,900 BTC of advertised capacity, 16,000 visible nodes. I chose those inputs because they match the public snapshot I could still pull from the network's own metrics. The results were not shocking. They were confirmation of a fact the industry has politely agreed to ignore. Routing failure rates sat near 23 percent. The average fee for a successful 100,000-satoshi payment was 83 satoshis. The top 5 percent of channels captured 71 percent of total routing fees. I wrote the failure lines into a log and stared at them for a long time. The hash is not the art; it is merely the key.
These numbers are not a post-mortem. Nothing has died. The Lightning Network is technically alive: channels open, HTLCs settle, the gossip protocol continues to gossip. It is the persistence that bothers me. We are seven years past the protocol's first major deployment, and the industry still celebrates a channel count that hovers in the low five figures. In a network designed to carry Bitcoin's global transaction volume, five thousand BTC of locked liquidity is a rounding error. It is a demonstration project. My simulator simply quantifies what every serious engineer already knows from the slow burn of a seven-year production experiment: Lightning has not scaled because it cannot scale gracefully.
Let me be precise about what "cannot scale" means. The common retort from Lightning advocates is that channel capacity is not the binding constraint; routing is. That statement is true but tautological. The binding constraint is liquidity entropy. The functional capacity of a payment channel is not its total satoshi balance. It is the directional available inbound liquidity at the moment a payment arrives. In a single channel, that number fluctuates with every transaction. In a network of thousands of channels, the sum of local fluctuations becomes a global stochastic field. A payment from Alice to Bob is not a path traversal. It is a search for a route through a space where each edge has a time-varying capacity that the sender cannot observe.
The geometric intuition is simple. At any moment, each channel is in one of many liquidity states, and the sender holds only a probabilistic estimate of those states. The probability that a specific payment path succeeds is the product of the probabilities that each hop holds the required inbound liquidity in the correct direction. If each hop has a 90 percent availability, a two-hop path succeeds with 81 percent probability. A five-hop path succeeds with 59 percent. A ten-hop path succeeds with 35 percent. This is not a subtle effect; it is exponential decay. My simulation used measured channel availability distributions rather than uniform 90 percent assumptions, and the decay curve was steeper. The network does not fail because the code is buggy. It fails because the probability of a long path existing at the exact moment of payment is tiny.
The time dimension makes the problem worse. Payments are atomic and path-specific. Once a sender picks a path, they must lock funds across every hop. The HTLC time-locks are set to the worst-case delay. If one channel on the path rebalances in the wrong direction, the payment fails and must be re-routed. The sender has no choice but to issue a new attempt, consuming fees and time. This is not a minor inefficiency. In my simulation, the failure rate increased roughly with the fourth root of network size. More nodes, more entropy. More entropy, more failed attempts. The network is fighting itself. The average successful payment costs more than the nominal fee, because failed attempts are not free. Every HTLC that times out locks capital, consumes bandwidth, and forces the sender to construct another path. A market that judges Lightning by the fee on successful routes is reading the ledger's credit column without looking at the debit column.
I am aware that this conclusion is not new. Research papers in 2019 and 2020 already documented routing failure rates above 10 percent. The well-known Pickhardt payments proposal attempted to solve the problem by treating fees as a function of uncertainty, effectively paying a premium to route around entropy. Some implementations adopted it. It did not save the network, because the entropy is not only in the liquidity distribution; it is also in the time dimension. A channel that is perfectly balanced at the moment of routing may become unbalanced three blocks later. The sender cannot know this without additional hop-by-hop communication, which destroys the very privacy that Lightning is supposed to preserve. There is no free lunch. There is not even a paid lunch.
I built my simulator to stress a different assumption: that the network's topology is a natural response to economic incentives. I introduced an hourly rebalancing scheme, where each node rebalances and advertises fees based on observed demand. The result was predictable but illuminating. The network did not become more efficient. It became more centralized. Hubs with fast rebalancing algorithms captured a larger share of successful routes. Small nodes became statistical noise. My simulation echoed what the public metrics have shown for years: the Gini coefficient for channels is alarmingly high, and the network's graph looks less like a mesh and more like a few extremely well-connected stars. A peer-to-peer network that routes around hubs is not a peer-to-peer network; it is a star topology with a pretense of decentralization.
This is why I keep returning to the mathematics. The Lightning Network's routing problem is a variant of the multi-commodity flow problem, which is NP-hard in the general case. Lightning's version adds the constraint that all flows must be split across paths that share time-locked liquidity, so the problem becomes a stochastic, time-dependent variant that is substantially harder. Heuristic algorithms work fine for a hundred channels. For a hundred thousand channels, they degrade. The simulation is not a proof of impossibility. It is a sharp illustration of the gap between the white paper's promise and the protocol's geometry. The entropy is baked into the concept of a payment channel: to move money without global consensus, you must allocate state, and all state is local information. The hash is not the art; it is merely the key.
Let me address the price-based counterargument directly. Lightning defenders often point to the low average fee on public channels as evidence of efficiency. This is a category error. The average fee is low because failed attempts are invisible. In my simulation, the total fee cost per successful payment, including the fees paid on failed attempts, was roughly 2.3 times the nominal on-path fee. That is a tax on all routing, and it disproportionately falls on smaller nodes. The cost is not only in satoshis; it is in capital efficiency. To send 100,000 satoshis reliably, a sender must maintain liquidity for multiple potential paths, none of which are guaranteed to clear. The liquidity buffer required for a 90 percent success rate is an order of magnitude higher than the buffer required for a 99 percent success rate. Lightning vendors who promise instant global payments do not publish their retry statistics. I have read enough audit reports to recognize a dashboard that is hiding its error budget.
I have spent a portion of the last year at the intersection of AI agents and on-chain settlement. The premise of that work is that autonomous agents will soon transact without human approval, for compute, for data, for collateral. The first thing I tell every agent engineer is to avoid speculative routing protocols. A deterministic payment channel is acceptable. A probabilistic graph of liquidity positions is not. If an AI agent sends a payment through a path that fails, it must retry, and retries require stateful reasoning. Large language models do not deal well with retry logic; each retry is a fresh inference, with fresh probabilities of hallucination. This is not a problem of AI. It is the classical network failing to offer the preconditions for autonomous execution. The industry is pushing toward intelligence on top of a pathfinding layer that cannot even find paths reliably. I have seen proposals to let language models automatically construct Lightning payment paths. The idea is appealing: an LLM can optimize a routing policy at runtime. But the LLM cannot observe channel liquidity with certainty, and the failure rate is not a statistical nuisance; it is a fundamental property of the stochastic graph. When an agent hallucinates an invalid path, the error cost is not a few satoshis. It is the deadweight loss of a failed transaction. In my work on zero-knowledge transaction signing, the hardest problem was not proving a statement true; it was proving that the statement's inputs are actually settled in the network. A signature proves the agent intended to pay. It does not prove the route will clear.
Now the contrarian observation. The real blind spot is not routing or fees; it is the community's refusal to treat Lightning as a legacy prototype. Every success metric, from the channel count to the total capacity, is defined relative to Lightning's own ceiling. Step outside that consensus, and the question becomes simpler: why does Bitcoin need a Layer 2 at all? The settlement layer was designed to be slow and expensive. That is a feature, not a bug. The attempt to build a second layer that is fast and cheap inevitably imports the scaling problem it tried to escape. Lightning faces the same trilemma as any sharded system: latency, decentralization, and capacity. You can have exactly two of the three. In practice, Lightning has chosen capacity and latency, sacrificing decentralization as the network topologically concentrates. It has produced a payment network that is not a payment network but a settlement network for a smaller set of centralized hubs. The technical question of how to route efficiently has occluded the architectural question of why route at all. My simulator does not answer that second question. It just makes the first one irrelevant.
There is a deeper assumption buried in the Lightning discourse, and it deserves scrutiny. The entire project assumes that Bitcoin must be a global cash system. That assumption was inherited from the original white paper, but the market has long since rejected it. Bitcoin has become a settlement layer for institutional value, not a payment rail for coffee. The moment you accept that, Lightning loses its reason to exist. A settlement layer does not need micro-payment channels. It needs finality, security, and a small number of large transactions. The network is solving a problem that the market has already priced out of existence. I have been skeptical of infrastructure narratives since 2017, when I spent twelve hours a day auditing the Golem token distribution contract. I learned that technical correctness does not guarantee adoption. Lightning is technically coherent in patches, but the adoption curve never followed, because the use case is a ghost.
So let me be direct about the implication. I do not believe Lightning is dying. I believe it has already become a niche protocol with a permanent user base of enthusiasts and small merchants. The seven-year half-life of the network is exactly what you would expect from a system whose routing complexity outstrips its liquidity density. The infrastructure is honest about its limits. The discourse is not. The next Bitcoin cycle will not rescue Lightning, because each cycle introduces new nodes, new channels, more entropy, and more failed attempts. The network will not collapse; it will just keep being a satisfying engineering curiosity.
The exit ramp is not a better routing algorithm. It is not more liquidity. It is an acceptance that Bitcoin cannot scale as a peer-to-peer cash system without an asymmetric security trade. The future is not a uniform graph of microchannels; the future is a system of trusted financial intermediaries that settle through a high-value base layer. If that is the world Lightning was always meant to build, we should stop pretending it is something else. If it is not, we need to start again from first principles, with a routing model that treats liquidity as the unknown it actually is. My simulator has a file of failed attempts. It is a good mirror. The question is whether the industry is willing to look into it. The hash is not the art; it is merely the key.