Satoshi BrotherYour brother in the market
EN

New Core Lightning Tool Enables Recovery of Pending Payments Despite Channel Data Loss

Bitcoin Lightning operators can reclaim stuck payments after losing channel data with Core Lightning's new recovery tool, enhancing fund recovery options.

New Core Lightning Tool Enables Recovery of Pending Payments Despite Channel Data Loss

Introduction to Core Lightning's New Feature

Core Lightning has introduced a new feature in its first release candidate, version 26.12, designed to help Bitcoin Lightning network operators retrieve funds from outstanding transactions even when they have lost access to local channel data. This functionality becomes essential primarily when a channel is closed by a peer through a Bitcoin transaction.

Fund Recovery Methods

The tool provides operators with methods to reclaim either outgoing funds or incoming payments, based on which pieces of payment data remain accessible. The pre-release version of this feature was announced on November 18 and continued to be highlighted on the project’s release list as of November 25. The development was discussed in detail by Bitcoin Optech in its newsletter dated November 20 and also featured in their podcast recap on November 24.

Existing Mechanism vs. New Feature

The existing mechanism for fund recovery by Core Lightning is primarily focused on allowing operators to retrieve their main channel balances when a peer broadcasts a closing transaction that the recovering node has not previously observed. However, the newly introduced feature enables operators to target specific outputs related to payments that were still in process at the time of closure.

Recovery Process

To successfully reclaim funds through this method, the closing transaction must include an unspent output corresponding to the pending payment. For transactions initiated by the operator, the recovery process necessitates access to both the payment hash and its expiration details. Once the specified time limit lapses, the operator is allowed to recover those funds. Conversely, if the payment was initiated by the peer, the recovery will require the use of a preimage, which serves as the secret that corresponds to the payment hash. The operator must have confirmation of their claim on the Bitcoin network, which must occur prior to the peer being able to reclaim the same output once the timelock expires.

Automated Recovery Tool

This new tool is capable of reconstructing the necessary spending conditions for each payment marked for recovery and will automatically cross-reference them against the closing transaction while ignoring any payments that do not meet the minimum output requirements. This process culminates in the generation of signed transactions that operators can assess and subsequently issue manually.

Requirements for Operators

For operators to effectively utilize this recovery feature, they must possess specific information including the original node secret, the peer's closing transaction details, identifiers for the channels involved, and other relevant data for each payment intended for recovery. Additionally, a peer aiming to assist can provide the public commitment point linked to the closing transaction without revealing their private keys or commitment secrets.

Wallet Recovery Guide

Moreover, Core Lightning’s wallet recovery guide outlines procedures for using the node secret alongside an emergency channel backup to restore the primary balance after channel closure. However, it contains a critical warning regarding the risks associated with restoring from an outdated database, which can lead to permanent fund loss; thus, recovery of any pending payment necessitates sufficient information to successfully reconstruct its specific output.

Also in other languages: РусскийDeutschFrançaisItalianoEspañol

Editorial & AI policy · Contact