-
Notifications
You must be signed in to change notification settings - Fork 2
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
allow export of static backup #639
Conversation
3ca6280
to
0b3b02e
Compare
lib/routes/dev/developers_view.dart
Outdated
|
||
void _exportStaticBackup(BuildContext context) async { | ||
final accBloc = context.read<AccountBloc>(); | ||
const name = "emergency.recover"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the name cln use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see but this, as implemented right now, is confusing because recovering from emergency file is different than recovering from the gPRc interface.
Here is how we should recover from the static backup hex data: https://docs.corelightning.org/reference/lightning-recoverchannel
If we call it emergency.recover the user would think the right way to recover is this: https://docs.corelightning.org/reference/lightning-emergencyrecover
So maybe we should call it just scb.recover
(as the parameter name for the recoverchannel command) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't find that recoverchannel function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed the file to scb.recover and also return the value as is.
0b3b02e
to
03a6905
Compare
03a6905
to
2b7d702
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM just one request:
Can you update the breez translations to this revision 782e52c6f272a4901ff85ecb76981085b355acd1 and change the two "in code" texts to texts references? (I'm adding the reference id)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
e007555
to
1ca3e73
Compare
1ca3e73
to
a8b9afb
Compare
Test
|
@ubbabeck I tested this from the developer's screen and the menu there displays this option. |
yes, and if the node does not have an active an error will show. |
implements #626
Q:
Should the file be written as bytes or string?
test
I am currently in the process of setting up clighting so i have not had the change to test whenever the file works or not.