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

Implement a recovery plugin #6544

Open
6 tasks
rustyrussell opened this issue Aug 11, 2023 · 2 comments
Open
6 tasks

Implement a recovery plugin #6544

rustyrussell opened this issue Aug 11, 2023 · 2 comments
Assignees
Labels

Comments

@rustyrussell
Copy link
Contributor

rustyrussell commented Aug 11, 2023

We have:

  • --recover
  • Peer backup
  • --offline
  • emergency.recover
  • rescan (for finding our funds)

We should implement a "recovery" plugin which handles:

  • Detecting that we need recovery: when a peer sends a reestablish which is IN THE FUTURE, we currenrtly log a message and mark the channel not to go onchain. We should instead, begin a recover process.
  • Trying to recover from various sources.

Stretch goals:

  • Enhance peer backup to contain more information
  • Mutual close for channels
  • Scan for funds
  • Continue channels for a while if we can / user chooses?
  • Ability to do peer backup for random nodes in return for sats
  • Ability for recovery plugin to use that to pay for peer backup / try it for restoration
@daywalker90
Copy link
Contributor

good idea, if i could recover the sats i lost here #6045 that would be awesome!

@rustyrussell
Copy link
Contributor Author

There is also a requirement to have a runtime recover command:

  • Only works if node is unused (no channels, no funds, no addresses issued)
  • Restarts with --recover=...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants
@rustyrussell @daywalker90 @nepet @ShahanaFarooqui @adi2011 @adi-shankara and others