Core Lightning 26.12 release candidate lets Lightning operators reclaim pending payments even after losing channel data

Core Lightning 26.12 release candidate lets Lightning operators reclaim pending payments even after losing channel data

Core Lightning’s upcoming 26.12 release candidate introduces a mechanism that lets operators retrieve funds from certain Lightning payments that remain pending.

The feature is intended for situations where a node loses its local channel data and the counter‑party closes the channel by broadcasting a closing transaction on the Bitcoin blockchain. Depending on which payment data survived, the tool offers two distinct recovery methods: one for reclaiming outgoing payments and another for collecting incoming ones.

The test version of the software was posted on 18 November, and it continued to appear at the top of the project’s release queue on 25 November as a pre‑release candidate. Bitcoin Optech highlighted the addition in its newsletter on 20 November and discussed it again in the podcast recap released on 24 November.

Core Lightning already provides a recovery routine that can restore the operator’s overall channel balance when the remote node forces a close with a transaction the recovering node has never observed. The new addition tackles a different output: the portion of the closing transaction that is earmarked for a payment that had not yet settled.

Both recovery options rely on the presence of an unspent output in the closing transaction that matches the payment in question. For an outgoing payment that the operator initiated, the recovery instructions state that the operator must have the payment hash and its expiry height. Once the associated timelock passes, the operator can claim the funds. For an incoming payment offered by the peer, the operator must possess the preimage—the secret that hashes to the payment hash. The claim must be confirmed on the Bitcoin network before the peer can retrieve the same output after its timelock expires.

The utility works by rebuilding the spending script for each payment the operator wishes to recover, verifying it against the closing transaction, and ignoring any payments that are too small to have generated a distinct output. It then creates signed transactions that the operator can examine and broadcast manually.

To use the tool, the operator needs the original node’s secret key, the peer’s closing transaction, the channel’s identifiers and relevant key material, plus the specific details for each payment to be reclaimed. A cooperative peer can provide the public commitment point linked to the closing transaction while keeping its private keys and commitment secrets confidential.

Core Lightning’s wallet‑recovery documentation already explains how to employ the node secret and an emergency channel backup to restore the main channel balance after a forced close. It also cautions that restoring from an outdated database can result in irreversible loss of funds, meaning that recovering a pending payment is only possible if sufficient information is available to reconstruct the exact output.

Source: CryptoNews.net

Post a Comment

Previous Post Zeniflix Post