Starting a new Lightning Node can be overwhelming. One of the most important questions you will inevitably ask yourself early is, “If I put a lot of sats into this node, what do I do if my node breaks or I no longer have access?” This blog will help answer this question from the LND implementation standpoint. C-Lightning and other implementations have different ways to recover that will not be covered here.
For LND, make sure you save your Cypher Seed Phrase and re-download your channel.backup file at least weekly or when your channels change extensively (many opens or closes in quick succession). If you lost access to your node, you could restore your funds using a fresh LND install on any platform and then choosing to restore from seed. This will close all your old channels, but you will get all your funds back on chain. You can then send those funds to any on chain wallet. For a more detailed walkthrough, continue reading.
For recovery on LND, you will need your LND Cypher Phrase, which is just a series of words that are given to you when you initially create your node. If you are using Voltage, you can access these words from your primary node dashboard. The other piece of information is known as your channel.backup file. This file holds the most recent pre-signed transaction to force close each channel. This file is updated every time something changes with any open channel that your node has active.
The channel.backup can be obtained many ways. Here are a few:
- Download manually in the ‘tools’ menu on Thunderhub (my preferred method).
- If you are running Voltage, you can download it manually from your primary node dashboard.
- You can use the lncli command if on command line.
- If you are using mynode/umbrel or other implementations, you may be able to download directly from their unique dashboards.
- Balance of Satoshis tool has a telegram bot integration that auto-downloads the channel.backup file to a telegram chat with you and the bot. This happens whenever a channel is opened or closed.
There may be other ways to acquire your channel.backup file but these are some common ones.
Let’s run through a scenario:
You are running your node on a raspberry pi. The raspberry pi fails. You have the LND cypher phrase and latest channel.backup. In this scenario you can buy a new raspberry pi, install LND, and use your words/channel.backup to receive your funds. You can also use Voltage to recover your funds and then you can send them to an address that you control.
You can restore any LND funds using Voltage, regardless of if it was originally a Voltage hosted node or not. All you have to do is create an account, click new node, and then check box “Restore existing node form Seed and Static Channel Backup”
If you do not enter your static channel backup, you will only have access to funds from channels that were closed. If you had 15 open channels and your channel.backup was saved when you only had 10 channels, then those 10 channels are recovered. The remaining 5 channels funds can also be recovered but you will have to wait for the peer to force close the channel. This could take time, so be sure to update your channel.backup whenever you open new channels.
A few things to always remember though:
- Uploading your channel.backup will close ALL existing channels associated with that node. These channels may take days to completely close so give it time if you do not see the funds in your on-chain wallet immediately.
- It is recommended that if you must recover using your seed/channel.backup, to migrate the newly on-chain funds to a separate wallet and start a fresh new node. Do not continue using the old cypher seed phrase.
- If your channel.backup is compromised (an unauthorized third party found it) they can do nothing with it and get no information unless they also have your cpyher seed phrase.
- If you lose your channel.backup and only have your cypher seed phrase, then you will have to wait for each peer of each channel to force close the channel. As your peers close their channels with you, you will see the funds appear in your on-chain wallet. It could take a long time for all your peers to force close these channels, and sometimes they might not even do it if they are not monitoring their nodes closely.
To sum everything up, just don’t lose your LND seed words and make a habbit of downloading your channel.backup file when you add channels to your node. As long as you do that, you will be able to recover and thankfully many people both at Voltage and in the wider community will help you if you need it. Thanks for reading and if you have any questions about this article or backups in general, please join the Voltage discord.