Skip to content
Market MoodExtreme Fear11
Market Cap: $2.03T −3.77%24h Vol: $41.97BBTC: $59,569 +0.93%
NewsMarketsBitcoinEthereumAltcoinsAsiaWeb3EventsAbout Us
LanguageENRU
Subscribe Pro
Bitcoin

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.

· 2 min read
Gold Bitcoin and silver Ethereum coins resting on a laptop keyboard before a trading chart
Photo by Pierre Borthiry - Peiobty on Unsplash

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.

BitcoinBTC · 24h
$59,569+0.93%

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.

LDKLightning NetworkBitcoinrouting nodeschannel monitor
Newsletter

Get the BitcoinEast Daily

Top crypto news, analysis, and market insights, delivered every day.