Lightning Development Kit fixes bug that could cost routing nodes
A tagged release was not confirmed by Nov. 29, so teams must check which library version or Git revision their build uses.
Bitcoin Lightning developers have a patch for a crash bug that could leave a routing node unable to collect money owed to it. The Lightning Development Kit, a code library used to build Lightning software, merged the fix on Nov. 23.
The risk affects routing nodes that have not applied the fix and that store channel-recovery data asynchronously, according to Tokenpost. A tagged release carrying the patch had not been confirmed as of Nov. 29, so operators should check which library version or source revision sits inside their build.
The failure needs a particular sequence. A node sends a payment out through one channel and gets matching funds through another, then crashes before the recovery details for the incoming channel reach storage. If that channel was force-closed, the node can lose the records it needs to claim the money. The loss also depends on the outgoing payment completing and the on-chain claim failing to confirm before its deadline.
LDK now counts the recovery update as unsaved until the storage write completes. The data sits in a channel monitor, which holds what a node needs to recover funds after a channel closes. Developers who write their own storage integrations must now confirm when the full channel-monitor write is done.
The change is in LDK's main development branch. Teams building from source can find the version or Git revision of that dependency in the Rust Cargo lockfile, while those on packaged software can read release notes or build records and ask the maintainer whether the fix or a backport is included.
Sources
- Tokenpost: Lightning Development Kit Fixes Crash-Recovery Risk for Routing Nodes
- CryptoSlate: Bitcoin Lightning fix targets funds routing nodes could lose after a crash
Not financial advice. Crypto assets are volatile and you can lose money. Read our Financial Risk Disclosure.
Crypto news checked against two or more sources, prices and a daily market brief.
- BNB Chain and Woori Bank plan stablecoin pilot with Brazil and Hong Kong
- Dormant 2010 Bitcoin wallet moves 0.05 BTC after 16 years
- Nvidia's Jensen Huang to face Senate on Dec. 3 over China chip exports