-
Notifications
You must be signed in to change notification settings - Fork 913
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
Much more powerful check
command, and new recover
command
#6772
Merged
rustyrussell
merged 8 commits into
ElementsProject:master
from
rustyrussell:guilt/recover-json
Oct 26, 2023
Merged
Much more powerful check
command, and new recover
command
#6772
rustyrussell
merged 8 commits into
ElementsProject:master
from
rustyrussell:guilt/recover-json
Oct 26, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustyrussell
force-pushed
the
guilt/recover-json
branch
2 times, most recently
from
October 20, 2023 00:41
13d668e
to
d9028e3
Compare
rustyrussell
force-pushed
the
guilt/recover-json
branch
2 times, most recently
from
October 23, 2023 11:33
ff10663
to
d1cae99
Compare
``` **BROKEN** connectd: dev_report_fds: 5 open but unowned? ``` Signed-off-by: Rusty Russell <[email protected]>
…cking. We often want to do more parameter checks after param(), so allow a new param_check(), with the proviso that the caller needs to also return command_check_done() after other checks if command_check_only(cmd) is true. Signed-off-by: Rusty Russell <[email protected]>
… write to db. Put an assertion inside db.c, and run every command we do (in testing) through a `check` variant. I inserted a deliberate bug (made addpsbtoutput call wallet_get_newindex() before returning when running `check`, and indeed, backtrace as expected. Signed-off-by: Rusty Russell <[email protected]>
rustyrussell
force-pushed
the
guilt/recover-json
branch
from
October 24, 2023 04:24
d1cae99
to
c39ba8d
Compare
We already do this in param_invstring now. Signed-off-by: Rusty Russell <[email protected]>
This makes `check` much more thorough, and useful. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: JSON-RPC: `check` now does much more checking on every command (not just basic parameter types).
Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: Config: `--recover` can take a 32-byte hex string, as well as codex32.
Changelog-Added: JSON-RPC: `recover` command to force (unused) lightningd node to restart with `--recover` flag. Signed-off-by: Rusty Russell <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
rustyrussell
force-pushed
the
guilt/recover-json
branch
from
October 24, 2023 21:32
c39ba8d
to
598c809
Compare
endothermicdev
approved these changes
Oct 24, 2023
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.
Looks great. I like the added check functionality and test coverage.
ACK 598c809
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #6616
With a fairly simple sweep, I could make
check
powerful enough thatcheck recover
does what the proposedrecover-possible
command was for. Overall, really happy with this change!So now, you can get a node to recover through the RPC api, great for front-ends like RTL, Zeus, etc.