Sunday, November 29, 2026
HomeEthereumBitcoin Lightning repair targets routing node losses

Bitcoin Lightning repair targets routing node losses



Bitcoin Lightning repair targets routing node losses

The Lightning Improvement Equipment, a library for constructing Bitcoin Lightning software program, merged a repair on Nov. 23 for a bug that might go away routing nodes paying out with out gathering the corresponding funds. The bug impacts unpatched LDK routing nodes that save channel restoration information asynchronously.

A Lightning routing node forwards a fee on one channel and collects the corresponding funds on one other. Bitcoin Optech’s Nov. 27 bulletin described a case during which the incoming channel had been force-closed.

If the node crashed earlier than its restoration information was saved, it might come again on-line with out data it wanted to gather the incoming funds. Loss was potential if the node had paid the outgoing facet and its declare on the Bitcoin blockchain additionally failed to verify earlier than expiry.

Asynchronous storage lets a node maintain working whereas its channel information is being saved. Within the affected case, LDK might deal with a restoration replace as saved whereas the write was nonetheless in progress. The LDK repair retains the replace pending till the write is completed. The replace goes right into a channel monitor, which holds data the node can use to recuperate funds when a channel closes.

A separate Core Lightning restoration software addresses pending funds after channel information has already been misplaced.

The patch retains the restoration replace pending by storage completion.

Within the described crash situation, loss additionally requires the outgoing fee to undergo and the incoming on-chain declare to overlook its deadline.

Methods to examine a operating construct

Pull request #5663 landed on LDK’s most important improvement department. As of Nov. 29, the venture’s repository tags and the Rust bundle historical past confirmed no confirmed tagged launch carrying the change. Docs.rs dates the 0.2.8 and 0.1.14 packages and the 0.3.0-rc4 launch candidate to Nov. 11, earlier than the merge.

The LDK Node 0.7.1 manifest, for instance, permits appropriate 0.2-series variations of the lightning library. Which one an operator runs is determined by the construct. The Cargo lockfile for a Rust utility data the precise dependency model or Git revision chosen for that construct.

Operators who compile their very own software program can examine the lockfile used for his or her construct, then confirm that the chosen launch or supply revision contains #5663. For a packaged utility, begin with the distributor’s launch notes or construct data for the put in model. If these go away it unclear, ask the maintainer whether or not that construct contains the repair or a backport and whether or not it saves channel restoration information asynchronously.

For builders who provide their very own storage, the repair additionally modifications after they report that information has been saved. Below the revised LDK contract, customized integrations that mark writes as pending should report when full channel-monitor writes end.

Associated Studying

Bitcoin builders suggest repair for transaction verification hole affecting Lightning wallets

RELATED ARTICLES

Most Popular

Recent Comments