Key Highlights
- Core Lightning’s new recovery tool can help operators reclaim funds assigned to eligible pending payments in a peer’s channel-closing transaction.
- Recovery requires an unspent matching output and payment-specific information; the required data depends on which side offered the payment.
- The tool creates signed transactions for the operator to review and broadcast manually, while outdated database restoration can permanently lose funds.
Core Lightning adds recovery for pending Bitcoin payments
Core Lightning’s existing recovery process can reclaim an operator’s main channel balance when a peer broadcasts a closing transaction the recovering node has never seen. A new tool addresses a separate part of the transaction: funds assigned to a payment that was still pending when the channel closed.
Bitcoin Optech covered the feature in its Nov. 20 newsletter and revisited it in its Nov. 24 podcast recap. The recovery tool reconstructs the spending conditions for each payment the operator wants to claim, checks whether those conditions match an output in the closing transaction, and skips payments too small to have an output.
What information is needed to recover a payment?
Both recovery paths depend on the closing transaction containing a matching output that remains unspent. The required payment information differs according to who offered the payment.
For a payment offered by the operator, the tool’s manual requires the payment hash and expiry. After the timelock expires, the operator can reclaim the funds. For a payment offered by the peer, the operator needs the preimage—the secret that matches the payment hash. The operator’s claim must be confirmed on Bitcoin before the peer can reclaim that same output. If the timelock expires, the peer can take the funds back.
To prepare a recovery, the 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 provide the public commitment point associated with the closing transaction without revealing its private keys or commitment secrets.
The tool produces signed transactions for the operator to review and broadcast manually. It does not remove the need to verify that the relevant output is present and unspent or that the recovery information is sufficient.
Why This Matters
Recovering a channel’s main balance and recovering funds tied to pending payments are distinct processes. Core Lightning’s wallet recovery guide explains how the node secret and an emergency channel backup can be used to reclaim the main balance after a peer closes a channel. The new tool addresses pending-payment outputs, which require enough payment-specific information to reconstruct their spending conditions.
The guide also warns that restoring an outdated database can permanently lose funds. As a result, recovering a pending payment depends on having the necessary information for its particular output, not only the details needed to recover the main channel balance.
Frequently Asked Questions
Which pending Bitcoin payments can the tool recover?
It can attempt recovery when the closing transaction contains a matching output that remains unspent and the operator has the information required for that payment. Payments too small to have an output are skipped.
What does the operator need for each type of payment?
For a payment the operator offered, the tool requires the payment hash and expiry. For a payment the peer offered, it requires the preimage matching the payment hash.
Does the tool broadcast recovery transactions automatically?
No. It produces signed transactions for the operator to review and broadcast manually.




