Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recovering bitcoin from missing channel #664

Closed
minecraft2048 opened this issue Jan 24, 2018 · 4 comments
Closed

Recovering bitcoin from missing channel #664

minecraft2048 opened this issue Jan 24, 2018 · 4 comments
Labels
question Support questions, not issues with the code recovery Related to the backup/restoration of LND data (e.g. wallet seeds)

Comments

@minecraft2048
Copy link

minecraft2048 commented Jan 24, 2018

Lets say that I have several channels open filled with several mBTC in it, and then Murphy's law strikes and then the only thing I have now is the backup seed for lnd wallet. How do I recover all those bitcoins from those opened channels?

@meshcollider meshcollider added question Support questions, not issues with the code recovery Related to the backup/restoration of LND data (e.g. wallet seeds) labels Jan 24, 2018
@dabura667
Copy link

Hmmm, maybe lncli could offer a “export encrypted channel.db” that encrypts the current channel.db using a key derived from master private key, and then “import encrypted channel.db” that will attempt to decrypt, and merge any channels info with priority given to currently open channel.db.

Then I can (ie) link it up with dropbox or gdrive or mega or whatever I want, and the info is all encrypted gunk to anyone but the lnd client holding the private key used to encrypt.

@brtkwr
Copy link

brtkwr commented Jan 24, 2018

perhaps a backup location should be mandatory in the setting up process so that encrypted keys are dumped every time a transaction takes place. would be a hassle to export them every time.

@stridentbean
Copy link

Not sure if this helps, but my current solution to this is to create a script that stores a backup of the code, channel.bd, and wallet.db.

  1. Stop LND
  2. Backup code
  3. Backup channel.db and wallet.db
  4. Restart LND

Matching the backed up data and code has always worked for me. You have to back up that code also because at this time code changes can be breaking changes :/. I do this backup before every attempt to update the code.

@Roasbeef
Copy link
Member

See #1364 and #175.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support questions, not issues with the code recovery Related to the backup/restoration of LND data (e.g. wallet seeds)
Projects
None yet
Development

No branches or pull requests

6 participants