Thursday, November 26, 2026

Core Lightning’s first 26.12 release candidate introduces a way to reclaim funds from certain pending Bitcoin Lightning payments.

The feature applies when an operator loses local channel data and a peer closes the channel by posting a transaction to Bitcoin. It gives the operator separate paths for reclaiming outgoing funds or collecting incoming funds, depending on which payment information remains available.

Core Lightning published the test build on Nov. 18, and it was still listed as a pre-release on the project’s release list on Nov. 25.

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 an operator’s main channel balance when a peer posts a closing transaction that the recovering node has never seen.

The change adds a new tool for 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, 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.

Recovery paths for a pending Lightning paymentA matching unspent output on the peer’s closing transaction is required in both cases. Outgoing funds can be reclaimed after expiry using the payment hash and expiry. Incoming funds require the matching preimage and must confirm before the peer spends the output.Peer’s closing transactionA matching payment output must still be unspentOutgoing paymentIncoming paymentOperator offered itPeer offered itPayment hash and expiryMatching payment preimageReclaim after expiryClaim must confirmbefore the peer spends the outputOperator reviews and broadcasts the signed claimRecovery paths for a pending Lightning paymentA matching unspent output on the peer’s closing transaction is required in both cases. Outgoing funds can be reclaimed after expiry using the payment hash and expiry. Incoming funds require the matching preimage and must confirm before the peer spends the output.Peer’s closing transactionMatching payment output still unspentOutgoing paymentOperator offered itPayment hash and expiryReclaim after expiryIncoming paymentPeer offered itMatching payment preimageClaim must confirmbefore the peer spends the outputOperator reviews and broadcasts the signed claim

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.

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 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.

Source link

Exit mobile version