Lightning Development Kit patches crash bug that could cost routing nodes funds

2 min read
Lightning Development Kit patches crash bug that could cost routing nodes funds
PrimeXBT Editorial Team
Reviewed by PrimeXBT

Topics in article

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.

Author

PrimeXBT
Our Editorial Team consists of leading experts with a proven record in the fields of trading, cryptocurrencies, blockchain and finance. We thoroughly research the sources of information in order to provide readers with quality content that serves edu...
Read author’s articles
Alert Triangle Risk Disclaimer
Disclaimer: Some past publications may be outdated. We recommend following our news to stay up to date with the latest information. For any questions, feel free to contact our support team via the chat below.
The content provided here is for informational purposes only. It is not intended as personal investment advice and does not constitute a solicitation or invitation to engage in any financial transactions, investments, or related activities. Past performance is not a reliable indicator of future results.
The financial products offered by the Company are complex and come with a high risk of losing money rapidly due to leverage. These products may not be suitable for all investors. Before engaging, you should consider whether you understand how these leveraged products work and whether you can afford the high risk of losing your money.
The Company does not accept clients from the Restricted Jurisdictions as indicated in our website/ T&C. Some services or products may not be available in your jurisdiction.
The applicable legal entity and its respective products and services depend on the client’s country of residence and the entity with which the client has established a contractual relationship during registration.

Today in markets

Browse Crypto News

Register Now

Trading involves risk

Get started in minutes

Our clients love how fast and simple our sign-up is. It takes just a few minutes to get started!

Get Started Get Started
Get started in minutes

Need Help?

Risk Warning:
Trading in leveraged products carries a high level of risk and may not be suitable for all investors.