Lightning Reliability Scores: How Wallets Choose the Best Payment Path
Lightning wallets must pick a route through thousands of nodes. How pathfinding algorithms score reliability, fees, and latency.
Every Lightning payment faces a hidden challenge before it even leaves the sender's wallet: choosing which path through the network to take. The public gossip protocol advertises roughly 17,000 nodes and 41,000 channels, but it withholds the one piece of information that matters most: how much liquidity sits on each side of a channel. Wallets must guess, and the quality of that guess determines whether a payment succeeds or fails.
This article examines how Lightning reliability scoring works across the major implementations: how they model unknown balances, learn from past failures, and decide which routes to try first. Understanding these mechanisms is essential for anyone running a routing node, building a wallet, or evaluating Lightning's reliability for production payments.
The Routing Problem: Incomplete Information
Lightning's network graph is public. Nodes broadcast channel announcements and channel updates containing capacity, fee policies, and CLTV delta values. What they do not broadcast is the current distribution of funds within a channel. A 10 million sat channel might have 9.5 million sats on one side and 500,000 on the other, or it might be perfectly balanced. The sender cannot know without trying.
This information asymmetry is by design. Broadcasting real-time balances would leak financial information and create a surveillance vector. But it means every payment is, at its core, a probabilistic bet. The wallet selects a path, constructs an HTLC, wraps it in onion encryption, and sends it. If any channel along the route lacks sufficient liquidity on the forwarding side, the payment fails and the wallet must try again.
Why balances stay hidden: The gossip protocol intentionally omits channel balance information. Broadcasting live balances would let any observer track payment flows and infer transaction patterns between specific nodes: a direct threat to user privacy.
How Pathfinding Algorithms Score Routes
At a high level, every Lightning implementation solves the same problem: find the cheapest route that is most likely to succeed. They all use variants of Dijkstra's shortest-path algorithm, but they differ significantly in how they define "cost." The cost function typically combines three components:
- Routing fees: the base fee plus the proportional fee rate multiplied by the payment amount
- Reliability penalty: a term that increases cost for channels estimated to have a low probability of forwarding successfully
- Timelock risk: a penalty for locking funds across long CLTV delta chains, since longer timelocks mean more capital at risk if something goes wrong
The critical differentiator between implementations is how they estimate the probability of success: the reliability score assigned to each channel hop.
Implementation Comparison: LND, CLN, Eclair, and LDK
Each major Lightning implementation takes a distinct approach to pathfinding. The table below summarizes the key differences.
| Feature | LND | CLN (xpay/askrene) | Eclair | LDK |
|---|---|---|---|---|
| Base algorithm | Modified Dijkstra | Min-cost flow (MCF) | Yen's K-shortest paths | Modified Dijkstra |
| Probability model | Apriori or Bimodal | Pickhardt-Richter | Logarithmic penalty | Bounded liquidity |
| Failure memory | Mission Control | Payment history (1 hour default) | Per-node tracking | Upper/lower liquidity bounds |
| Default decay | 1 hour (apriori) / 1 week (bimodal) | 1 hour | Configurable | Configurable per scorer |
| MPP strategy | Split after single-path failure | Optimal split from start | Split with K candidate paths | Split with probabilistic scoring |
| Cost function | Fees + attempt_cost / P | Fees + -log(P) flow cost | Fees + -log(P) + lockedFundsRisk | Fees + -log(P) liquidity penalty |
LND: Mission Control and Probability Estimators
LND's pathfinding centers on a system called Mission Control, which tracks the outcome of every payment attempt and uses that history to adjust future routing decisions. LND offers two probability estimators that feed into this system.
The apriori model assigns a flat 60% success probability to untested channels. When a payment fails through a particular channel, Mission Control penalizes it by dropping its probability and then gradually restores it over a configurable half-life (default: one hour). The penalty also extends to the failing node's other channels via a reputational weight.
The bimodal model, introduced in LND v0.16, takes a more sophisticated approach. It assumes channel balances follow a bimodal distribution: empirical sampling found that roughly 30% of channel balances are concentrated on one side, with the remainder forming a roughly uniform distribution. This model uses a default scale of 300,000,000 msat, a node weight of 0.2, and a longer decay time of one week.
LND's cost function divides attempt costs by the estimated probability P, meaning unreliable channels are penalized more steeply than under a logarithmic approach. A channel with 20% estimated success probability costs five times more than one at 100%.
CLN: Pickhardt-Richter Optimization
Core Lightning took a fundamentally different direction with renepay, introduced in v23.08 as an experimental plugin implementing the Pickhardt-Richter minimum-cost flow (MCF) algorithm. Rather than finding one path and retrying on failure, renepay models the payment as a network flow problem: it maps out probable liquidity across all paths and simultaneously computes the optimal split across multiple routes.
The MCF approach uses Bayesian analysis to estimate channel liquidity distributions. After each payment attempt, renepay updates its beliefs based on what succeeded and what failed, retaining this learned state for up to an hour by default. Subsequent payments benefit from accumulated knowledge about the network's real liquidity state.
Since v24.08, CLN has split this functionality into two components: xpay (payment execution) and askrene (the routing advice engine powered by the MCF solver). This separation lets wallet developers query the routing engine independently of payment execution.
Eclair: K-Shortest Paths with Channel Age
Eclair, developed by ACINQ, uses Yen's K-shortest paths algorithm. Instead of finding a single best path, it generates a ranked list of candidate routes and evaluates each against its scoring criteria. This approach provides fallback options without needing to recompute the entire graph after a failure.
Eclair incorporates channel age as a reliability indicator: older channels with longer operational histories are considered more stable. It also uses a logarithmic probability penalty similar to CLN and LDK, weighted by a configurable lockedFundsRisk parameter that penalizes routes requiring long timelock chains.
A 2024 comparative study of pathfinding strategies found that Eclair's approach tends to produce paths with low fees while maintaining competitive reliability, though the results vary depending on payment size and network conditions.
LDK: Bounded Liquidity Tracking
The Lightning Dev Kit uses a ProbabilisticScorer that tracks upper and lower liquidity bounds for each channel. When an HTLC fails at a particular hop, LDK lowers the estimated upper bound of available liquidity. When a payment is forwarded successfully past a hop but fails later, LDK raises the lower bound.
These bounds feed into the Pickhardt-Richter formula: success probability equals (upper_bound - amount) divided by (upper_bound - lower_bound). The resulting penalty is the sum of base, liquidity, and amount components, representing the millisatoshis a sender would pay to avoid a given channel. LDK also maintains a 32-bucket historical probability distribution for longer-term learning.
Key Scoring Factors
Regardless of implementation, several factors feed into every reliability score. Understanding them helps node operators and wallet developers optimize their routing performance.
Channel Capacity and Payment Size
The ratio of payment amount to channel capacity is the single strongest predictor of routing success. A 100,000 sat payment through a 10 million sat channel has far better odds than the same payment through a 200,000 sat channel. All implementations bias toward larger-capacity channels for this reason.
Time Since Last Failure
Every implementation decays failure penalties over time. LND's apriori model uses a half-life of one hour: a channel that failed 60 minutes ago is treated as having recovered to 50% of its baseline probability. The bimodal model uses a longer one-week decay, reflecting its assumption that channel balance distributions change slowly.
Fee Rate and Base Fee
Lower-fee channels are preferred, but only when reliability is comparable. A channel charging 1 ppm (part per million) with a 50% success probability may cost more in expected value than a 10 ppm channel at 99%. The cost function balances these factors by converting reliability into a fee-equivalent penalty.
CLTV Delta and Timelock Risk
Each hop in a Lightning route adds to the total CLTV delta: the number of blocks funds remain locked if something goes wrong. A three-hop route where each node requires a 40-block delta means the sender's funds could be locked for 120 blocks (roughly 20 hours). Implementations penalize longer timelocks because locked capital carries opportunity cost and increases exposure to channel jamming attacks.
Node Uptime and Reputation
LND's mission control tracks per-node reputation: a node whose channels fail frequently gets penalized across all its channels, not just the one that failed. This reputational scoring helps avoid nodes that are consistently unreliable due to poor connectivity, undersized hardware, or aggressive fee policies.
Multipath Payments: Splitting for Reliability
Multipath payments (MPP) represent the most significant reliability improvement in Lightning's history. Instead of routing the entire payment through a single path, MPP splits it into smaller parts that travel independently and settle atomically at the receiver using the same payment hash.
The reliability improvement is mathematical. Consider a 1 million sat payment where any single channel has a 70% chance of forwarding successfully. On a three-hop single path, the end-to-end probability is 0.7 × 0.7 × 0.7 = 34.3%. Split that same payment into four 250,000 sat parts, and each part has a higher per-channel probability (smaller amounts are more likely to fit within available liquidity). Even if each part only has a 90% end-to-end success rate, the probability that at least one viable combination of four parts completes rises dramatically with retry logic.
Base MPP vs. AMP: Base MPP uses a single payment hash across all parts, with atomicity enforced by the receiver. Atomic Multipath Payments (AMP) use independent preimages per part, improving privacy by preventing intermediary nodes from correlating the parts. Both are specified in the BOLT specification, and all major implementations support base MPP today.
How Implementations Handle Splitting
The implementations differ in when and how they split payments:
- LND typically attempts a single-path payment first and splits only after the initial attempt fails, using mission control data to inform the split
- CLN's renepay/xpay models the payment as a flow problem from the start, computing the optimal split across multiple paths simultaneously
- Eclair generates K candidate paths and distributes the payment across them based on estimated capacity
- LDK uses its probabilistic scorer to evaluate split candidates, factoring in the liquidity bounds it has learned from prior payments
What the Success Rate Data Actually Shows
Lightning payment success rates are frequently cited but rarely understood in context. The numbers vary enormously depending on payment size, route length, and the sender's network position.
| Scenario | Reported Success Rate | Source / Context |
|---|---|---|
| One-hop direct channel | 99%+ | Fidelity Digital Assets report |
| Each additional hop | 4-8% reduction per hop | Fidelity Digital Assets report |
| Well-connected operator (e.g. River) | 96.5% - 99.6% | River Financial infrastructure data |
| Modeled core network ($100 payments) | 99.66% | Network simulation (not representative of all users) |
| Academic probing study (2020, pre-MPP maturity) | 15% - 72% (varies by amount) | Empirical availability study |
The gap between vendor-reported figures (96%+) and academic probing studies (as low as 15%) reflects a fundamental asymmetry. Well-connected nodes with direct channels to major counterparties experience a very different network than a mobile wallet routing through three or four hops to reach a small merchant. Each additional hop compounds the probability of failure: a three-hop route where each channel has a 92% forwarding probability yields just 77.9% end-to-end success.
The Privacy Tradeoff: Probing Reveals Balances
Reliability scoring creates a tension with privacy. The more a wallet knows about channel balances, the better it can route. But the methods for learning balances can compromise the financial privacy of channel operators.
Research by Tikhomirov et al. (2020) demonstrated that an attacker can probe individual channel balances in under a minute per channel with moderate capital and zero expenditure. The technique exploits HTLC failure messages: by sending payments of varying sizes through a target channel and observing which amounts succeed or fail, the prober can narrow down the balance to within a few satoshis.
This creates a direct conflict. Wallets that aggressively probe the network before sending payments achieve better reliability. But those probes reveal balance information that could be used to track payment flows between specific users. The probing technique works because onion routing reveals which channel on a failed route caused the failure, giving the sender precise feedback about liquidity distribution.
Proposed Mitigations
Several approaches have been proposed to reduce the privacy impact of balance probing:
- Error message obfuscation: hiding which specific channel caused a failure would stop targeted probing, but it would also degrade pathfinding quality since wallets could no longer learn from failures
- Blinded paths: the receiver constructs the last few hops of the route, preventing the sender from knowing the exact path to the destination
- Trampoline routing: delegating pathfinding to intermediate nodes reduces the sender's need to probe the network directly, at the cost of trusting those nodes with routing decisions
- Shadow routing: adding random extra hops to payments to obscure the true destination and make probing less informative
Why Routing Remains Lightning's Hardest Problem
Despite years of algorithmic improvement, routing reliability remains Lightning's most significant UX challenge. The core issue is structural: reliable routing requires information that the protocol deliberately hides for privacy reasons. Every improvement in pathfinding either requires more network probing (reducing privacy), more past payment data (requiring time and volume), or more centralization around well-connected hubs (reducing censorship resistance).
For a deeper analysis of Lightning's routing architecture and fee dynamics, see our Lightning Network routing deep dive and multipath splitting analysis.
How Spark Sidesteps the Routing Problem
Spark takes a fundamentally different approach to Bitcoin payments that eliminates the routing problem entirely. Instead of forwarding payments through a chain of intermediary nodes, Spark uses statechain transfers: direct ownership changes between sender and receiver with no hops, no channel balances to guess, and no probabilistic scoring.
In a Spark transfer, the Bitcoin stays in the same on-chain UTXO. What changes is the cryptographic key material that authorizes spending. The Spark Entity (a set of operators using FROST threshold signatures) adjusts its key share to match the new owner while deleting the old share. There is no path to find, no channel liquidity to estimate, and no failure to retry.
The result: Spark transfers settle instantly with a 100% success rate for valid transfers, because the only parties involved are the sender, the receiver, and the operator set. There are no intermediary channels to run dry, no CLTV deltas to accumulate, and no routing fees from forwarding nodes.
Complementary, not competing: Spark includes native Lightning interoperability. You can pay any Lightning invoice from a Spark wallet: Spark Service Providers handle the routing on your behalf via atomic swaps. The routing complexity still exists, but it moves from the end user to a specialized provider.
For developers building payment applications, the Spark SDK provides a unified API for Bitcoin and stablecoin transfers without requiring any pathfinding logic. General Bread is one example of a Spark-powered wallet that delivers instant payments without exposing users to routing complexity. For a detailed comparison of the two architectures, see our Spark vs Lightning architecture comparison.
This article is for educational purposes only. It does not constitute financial or investment advice. Bitcoin and Layer 2 protocols involve technical and financial risk. Always do your own research and understand the tradeoffs before using any protocol.

