Markets
BTC $59,677 -3.48% ETH $1,654 -4.89% BNB $551 -2.75% XRP $0.9451 -2.59% SOL $71.23 -2.56% LINK $9.14 -5.46% BTC $59,677 -3.48% ETH $1,654 -4.89% BNB $551 -2.75% XRP $0.9451 -2.59% SOL $71.23 -2.56% LINK $9.14 -5.46% TOTAL $2.07T BTC.D 57.8%

Blockchain Technology

Core Lightning Test Build Adds Recovery for Payments Stuck After Channel Data Loss

The 26.12 release candidate reconstructs spending conditions for pending payments and produces signed claims for operators to broadcast by hand.

Core Lightning’s first 26.12 release candidate adds a recovery path for a narrow but expensive failure: an operator loses local channel data, a peer force-closes the channel on chain, and a payment is left pending in the closing transaction.

The build was published on Nov. 18 and was still listed as a pre-release at the top of the project’s release page on Nov. 25.

Core Lightning can already reclaim an operator’s main channel balance when a peer posts a closing transaction the recovering node has never seen. The new tool handles a separate output: the amount the closing transaction sets aside for a payment that was still in flight.

The two cases need different information. For a payment the operator offered, the operator needs the payment hash and the expiry, and can reclaim the funds once the timelock expires. For a payment the peer offered, the operator needs the preimage, the secret matching the payment hash, and the claim must confirm on Bitcoin before the peer reclaims the same output, which it can do after the timelock lapses.

Both paths require a matching output on the closing transaction that remains unspent. An output that is absent or already spent cannot be recovered, and a payment too small to have an output of its own is skipped. The tool reconstructs the spending conditions for each payment, checks them against the closing transaction, and produces signed transactions for the operator to review and broadcast manually. The main balance route also needs the original node secret, the channel and payment details, and the peer’s public commitment point.

Recovery after data loss has long been the operational soft spot of off-chain payments. A channel is a shared account, and losing the local copy of its state leaves a node dependent on its peer’s cooperation and on the clock. Losing the state usually means waiting out a delay period while the counterparty holds the ability to sweep the balance.

The new tool narrows that dependency for one class of pending payment without making the process automatic, and the manual step is deliberate: the claim is competing with a counterparty for the same output, so a mistaken broadcast spends it. The release candidate carries no guarantee of inclusion in the final 26.12 build, and operators on older versions cannot use it until they upgrade.

Share this article

Viber uses viber://forward?text= when the app is installed.