LDK fixes vulnerability causing fund loss after routing node crashes

On November 23, the Bitcoin Lightning Network development kit (LDK) merged a fix patch (pull request #5663) targeting routing nodes that use asynchronous storage to save channel recovery data, CryptoSlate reported on November 29. Bitcoin Optech described in its November 27 newsletter that a routing node forwards a payment on one channel and receives the corresponding funds on another; if the node crashes before the recovery data write completes, after restart it lacks the information needed to claim the incoming funds; if the outbound payment has already been made and the on-chain claim of the incoming funds is not confirmed before expiry, a loss occurs. The patch keeps the recovery update pending until the write completes and writes it to the channel monitor, so the node can recover funds when the channel closes. As of November 29, no official release confirmed to contain the change was seen in LDK repository tags or Rust package history; 0.2.8, 0.1.14 and 0.3.0-rc4 are all dated November 11, earlier than the merge. Operators can check the Cargo lock file used in their build to confirm whether #5663 is included; developers providing their own storage must report after the full channel monitor write completes.
AI-translated summary. Check important details with the original source.
