The Lightning Development Kit (LDK) merged a fix on Nov. 23 for a bug that could leave routing nodes paying out without collecting the corresponding funds, CryptoSlate reported. The bug affected unpatched LDK routing nodes that save channel recovery data asynchronously and could let a node restart without the information it needed to claim incoming funds if it crashed before a write completed, Bitcoin Optech said in a Nov. 27 bulletin. A Lightning routing node forwards a payment on one channel and collects the corresponding funds on another; Bitcoin Optech described a case in which the incoming channel had been force-closed and the node lacked the recovery state needed to pursue the incoming claim. Asynchronous storage lets a node continue operating while channel data is being written. In the affected case, LDK could treat a recovery update as saved while the write was still in progress, creating a window in which the node had paid the outgoing side but could not collect the incoming funds if its on-chain claim failed to confirm before expiry, CryptoSlate reported. The merged change keeps the recovery update pending until the write fully finishes, and the update is placed into the channel monitor that holds information the node can use to recover funds when a channel closes, CryptoSlate reported. CryptoSlate also noted that a separate Core Lightning recovery tool exists to address pending payments after channel data has already been lost. Pull request #5663 landed on LDK's main development branch, but as of Nov. 29 the project's repository tags and the Rust package history showed no confirmed tagged release carrying the change, CryptoSlate reported. Docs.rs lists the 0.2.8 and 0.1.14 packages and the 0.3.0-rc4 release candidate with dates of Nov. 11, all before the merge. The LDK Node 0.7.1 manifest allows compatible 0.2-series versions of the lightning library, and which exact dependency an operator runs depends on the build; the Cargo lockfile for a Rust application records the exact dependency version or Git revision selected at build time, CryptoSlate reported. CryptoSlate recommended that operators who compile their own software check the lockfile used for their build and verify that the selected release or source revision includes #5663. For packaged applications, start with the distributor's release notes or build records for the installed version, and if those are unclear, ask the maintainer whether the build includes the fix or a backport and whether it saves channel recovery data asynchronously. For developers supplying custom storage, the fix also changes when integrations 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, CryptoSlate reported. Read more AI-generated news on: https://app.chaingpt.org/news