The Lightning Development Kit merged a fix for a crash-recovery bug that could leave routing nodes paying out without collecting funds. The bug affects unpatched nodes that save channel recovery data asynchronously. No confirmed tagged release carries the change yet.
The Lightning Development Kit (LDK), a library for building software on the Lightning Network, merged a fix on Nov. 23 for a bug that could leave routing nodes paying out without collecting the corresponding funds. The bug affects unpatched LDK routing nodes that save channel recovery data asynchronously.
How a crash could cost a routing node funds
A Lightning routing node forwards a payment on one channel and collects the corresponding funds on another. Bitcoin Optech's Nov. 27 bulletin described a case in which the incoming channel had been force-closed.
If the node crashed before its recovery data was saved, it could come back online without information it needed to collect the incoming funds. Loss was possible if the node had paid the outgoing side and its claim on the blockchain also failed to confirm before expiry.
What the patch changes
Asynchronous storage lets a node keep working while its channel data is being saved. In the affected case, LDK could treat a recovery update as saved while the write was still in progress. The fix keeps the update pending until the write is finished.
For developers who supply their own storage, the fix also changes when they report that data has been saved. Under the revised LDK contract, custom integrations that mark writes as pending must report when full channel-monitor writes finish.
Release coverage remains unconfirmed
Pull request #5663 landed on LDK's main development branch. As of Nov. 29, no confirmed tagged release carried the change, according to the project's repository tags and the Rust package history.
Operators who compile their own software can check the lockfile used for their build, then verify that the selected release or source revision includes #5663. For a packaged application, the distributor's release notes or build records for the installed version are the place to start.
Source: CryptoSlate
Trading involves risk.