Loading prices…
🔥BULLISH

Bitcoin Lightning Fix Closes Routing Node Loss Risk

Operators need to verify their installed builds: a tagged release containing the crash-recovery fix had not been confirmed as of Nov. 29.

Bitcoin Lightning Fix Closes Routing Node Loss Risk
Bitcoin Lightning Fix Closes Routing Node Loss Risk

Lightning Development Kit merged a fix on Nov. 23 for a crash-recovery bug that could leave Bitcoin Lightning routing nodes paying out without collecting the corresponding incoming funds. The issue affects unpatched LDK routing nodes that save channel recovery data asynchronously. Loss was possible if a node crashed and its on-chain claim failed to confirm before expiry.

Why it matters

Routing nodes forward payments between Lightning channels, collecting funds on one side and paying them out on the other. Bitcoin Optech described a case involving a force-closed incoming channel: if the node crashed before recovery data was saved, it could restart without the information needed to collect.

The fix keeps a channel-monitor update pending until the storage write finishes. The monitor holds information needed to recover funds when a channel closes. Developers using custom storage must also report when full channel-monitor writes finish if they mark those writes as pending.

Market impact

The change targets a potential loss for routing-node operators, rather than a Bitcoin price move. A separate Core Lightning recovery tool addresses pending payments after channel data has already been lost.

Pull request #5663 landed on LDK's main development branch, but as of Nov. 29 no tagged release carrying it had been confirmed. Operators can check the exact dependency version or Git revision in their build lockfile, or ask their software distributor whether the installed build includes the fix or a backport.

Related tokens
$BTC

Frequently asked questions

  1. Which Lightning nodes are affected by the recovery bug?

    The bug affects unpatched LDK routing nodes that save channel recovery data asynchronously.

  2. How could a crash cause a routing node to lose funds?

    After paying the outgoing side, a node could restart without the data needed to collect incoming funds. A loss was possible if its on-chain claim also failed to confirm before expiry.

  3. What does the LDK fix change about channel-monitor updates?

    The fix keeps an update pending until its storage write finishes. The channel monitor holds information used to recover funds when a channel closes.

  4. How can operators check whether their build includes the fix?

    Operators can check the dependency version or Git revision in their build lockfile. For packaged software, they can ask the distributor whether the installed build includes the fix or a backport.

  5. What must developers using custom storage do under the revised LDK contract?

    Custom integrations that mark writes as pending must report when full channel-monitor writes finish.

Source attribution
Aggregated from CryptoSlate · Verified · Last refreshed 13m ago
Open original →