Bitcoin Lightning operators could recover stuck payments even after losing channel data
Quick Take
- Core Lightning’s 26.12 release candidate adds a manual tool for recovering eligible pending funds after channel data loss.
- Outgoing funds can be reclaimed after expiry if the matching output on the closing transaction remains unspent.
- An incoming claim needs the matching preimage and must confirm before the peer reclaims the same output.
Core Lightning’s first 26.12 release candidate adds a way to reclaim funds from some pending Bitcoin Lightning payments.
It applies after an operator loses local channel data and a peer closes the channel by posting a transaction to Bitcoin. The tool gives the operator separate ways to reclaim outgoing funds or collect incoming funds, depending on the payment information that survived.
Core Lightning published the test build on Nov. 18, and still headed the project’s release list on Nov. 25 as a pre-release.
Bitcoin Optech covered the feature in its Nov. 20 newsletter and revisited it in its Nov. 24 podcast recap.
Core Lightning’s existing recovery process can reclaim the operator’s main channel balance when the peer posts a closing transaction the recovering node has never seen.
The change adds a new tool that addresses a separate output: the amount the closing transaction sets aside for a payment that was still pending.
Which pending Bitcoin payments qualify
Both recovery paths require a matching output in the closing transaction that remains unspent. For a payment the operator offered, the tool’s manual says the operator needs the payment hash and the expiry. Once the timelock expires, the operator can reclaim those funds.
For a payment the peer offered, the operator needs the preimage, the secret that matches the payment hash. The operator’s claim must be confirmed on Bitcoin before the peer reclaims the same output. Once the timelock expires, the peer can take the funds back.
The tool reconstructs the spending conditions for each payment the operator wants to recover and checks them against the closing transaction, and skips payments that are too small to have an output.
It produces signed transactions for the operator to review and broadcast manually.
Which pending Lightning payments can be recovered?
Core Lightning 26.12rc1 tests recovery after an operator loses channel data and the peer force-closes the channel.
The tool handles pending-payment outputs. The main channel balance has its own recovery path.
The original node secret, channel and payment details, and the peer’s public commitment point are also required. Outputs that are absent or already spent cannot be recovered.
Sources
Supporting facts
- Core Lightning published v26.12rc1 on Nov. 18 as a pre-release that adds a manual tool to recover eligible pending payment outputs after channel-state loss. [1] [2]
- To use the new recovery path, operators need their original node secret, the peer’s published closing transaction, channel identifiers and key information, and details for the payments they want to recover. [2] [3]
- A cooperating peer can supply the public commitment point specific to the closing transaction without disclosing its private keys or commitment secrets. [2] [3]
- For an eligible outgoing payment, an operator can reclaim the funds after its timelock expires if they have the payment hash and expiry and the closing transaction still has a matching unspent output. [2] [3]
- For an eligible incoming payment, the operator needs the matching payment preimage and must get the claim confirmed before the peer reclaims the output. [2] [3]
- The recovery tool signs transactions only for matching closing outputs, skips payments too small to have an output, and leaves review and broadcast to the operator. [2] [3]
- When a peer force-closes with an unfamiliar closing transaction, Core Lightning’s existing recovery path can reclaim the operator’s main channel balance. Identifying on-chain outputs for pending payments requires additional data. [2] [3] [4]
Method
The two paths follow the tagged Core Lightning manual’s rules for payments offered by the operator or the closing peer.
Scope
The original node secret, channel and payment details, and the peer’s public commitment point are also required. Outputs that are absent or already spent cannot be recovered.
CryptoSlateThe operator needs the original node secret, the peer’s closing transaction, channel identifiers and key information, and details for each payment they want to recover.
A cooperating peer can supply the public commitment point tied to the closing transaction while keeping its private keys and commitment secrets private.
Core Lightning’s wallet recovery guide describes using the node secret and an emergency channel backup to reclaim the main balance after a peer closes the channel.
It also warns that restoring an outdated database can permanently lose funds, so recovering a pending payment depends on having enough information to reconstruct its particular output.
Mentioned in this article
Editorial credits
Also known as "Akiba," Liam Wright is a reporter, podcast producer, and Editor-in-Chief at CryptoSlate. He believes that decentralized technology has the potential to make…
Gino Matos is a law school graduate and a seasoned journalist with six years of experience in the crypto industry. His expertise primarily focuses on the Brazilian blockchain…