CONNECT WITH US
Web3 & Blockchain

Web3 & Blockchain

Bitcoin Lightning fix targets funds routing nodes could lose after a crash

CryptoSlate logo

Published on

Add as a preferred source on Google
Bitcoin Lightning fix targets funds routing nodes could lose after a crash

Lightning Development Kit developers merged the patch on Nov. 23. Operators can check whether their build includes it.

The Lightning Development Kit, a library for building Bitcoin Lightning software, 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.

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 Bitcoin blockchain also failed to confirm before expiry.

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 LDK fix keeps the update pending until the write is finished. The update goes into a channel monitor, which holds information the node can use to recover funds when a channel closes.

A separate Core Lightning recovery tool addresses pending payments after channel data has already been lost.

In the described crash scenario, loss also requires the outgoing payment to go through and the incoming on-chain claim to miss its deadline.

Conceptual comparison of write events in the LDK merge record and Bitcoin Optech's technical account.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.