Community Trust ScoreVerified
The Lightning Development Kit (LDK) merged a fix for a crash-recovery bug on Nov. 23, addressing a scenario where unpatched routing nodes could lose incoming funds if they crashed before saving channel recovery data.
As of 15:07 UTC, Bitcoin traded at $59,837, +0.9% over 24 hours, with $16.9 billion in 24-hour volume.
The Crash-Recovery Bug
Bitcoin Optech described the specific failure case in a bulletin published on Nov. 27. The issue affects LDK routing nodes that save channel recovery data asynchronously. In the documented case, the incoming channel had been force-closed. If a node crashed before the recovery data was fully saved, it could restart without the information needed to collect incoming funds. Loss became possible if the node had already paid the outgoing side and its claim on the Bitcoin blockchain failed to confirm before the deadline expired.
The root cause lay in how LDK handled asynchronous storage. This mechanism allows a node to keep operating while channel data is being written to disk. However, in the affected version, LDK could treat a recovery update as saved while the write operation was still in progress. The fix ensures the update remains pending until the write is fully finished. This update goes into a channel monitor, which holds the information necessary for recovering funds when a channel closes.
Release Status and Operator Action
Pull request #5663 landed on LDK’s main development branch on Nov. 23. As of Nov. 29, no confirmed tagged release carrying the change was shown in the project’s repository tags or Rust package history. Docs.rs dates the 0.2.8 and 0.1.14 packages, along with the 0.3.0-rc4 release candidate, to Nov. 11, which is before the merge date. The LDK Node 0.7.1 manifest allows compatible 0.2-series versions of the lightning library, meaning the specific version an operator runs depends on their build configuration.
A separate Core Lightning recovery tool addresses pending payments after channel data has already been lost, but the LDK fix prevents the data loss in the first place. For developers who supply their own storage, the fix changes when they report that data has been saved. Under the revised LDK contract, custom integrations that mark writes as pending must now report when full channel-monitor writes finish.
Operators who compile their own software can check the Cargo lockfile used for their build to verify if the selected release or Git revision includes #5663. For packaged applications, operators should start with the distributor’s release notes or build records. If those notes are unclear, operators should ask the maintainer whether the build includes the fix or a backport. They should also ask if the build saves channel recovery data asynchronously.
