Repository navigation
Recovering a Core Lightning channel with hsm_secret but no current backup #9710
Replies: 1 comment
|
Short version: the channel can't be resumed without the latest state, but the balance on your side is recoverable once ACINQ force-closes. Your hsm_secret plus the channel dbid is all you need for that part. Why it can't be resumed: CLN has to know the latest commitment number and the per-commitment secrets to keep operating the channel. Restoring an older DB is dangerous (if you ever broadcast an old commitment you lose everything to a penalty tx), so don't try to "re-create" the channel from your emergency backup. Let ACINQ close it with their latest commitment. Recovering your output after their unilateral close: Any channel with ACINQ opened on a recent CLN will be an anchors channel (anchors are on by default since v24.02). That means your The key is static (no per-commitment tweak), so since you already know the dbid you can derive it directly: (no commitment point argument, which tells it the channel uses static_remotekey). Note that To spend it you need a tx with Before asking them to close, I'd verify:
The FAQ section on "Database corruption / channel state lost" covers the same idea, but it predates anchors, so the P2WSH detail above is the part it's missing. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I lost the server running my Core Lightning node. I still have the hsm_secret, but my emergency backup predates a channel I opened with ACINQ.
ACINQ suggested asking the Core Lightning team whether the channel can be resumed, or how to recover my outputs if they publish their commitment transaction.
I’ve recovered the internal channel database ID offline and verified that my secret derives the channel’s funding public key, but I don’t have the current channel database.
Is there a way to restore the channel using whatever state ACINQ still retains? If not, what information would you need from me or ACINQ to work out how to recover my funds after a force-close? What should I verify before asking them to close it, including whether any pending payments would need separate recovery?
Thanks!
All reactions