-
Notifications
You must be signed in to change notification settings - Fork 964
Downgrade tool #8702
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
Merged
rustyrussell
merged 13 commits into
ElementsProject:master
from
rustyrussell:guilt/downgrade-tool
Nov 27, 2025
Merged
Downgrade tool #8702
rustyrussell
merged 13 commits into
ElementsProject:master
from
rustyrussell:guilt/downgrade-tool
Nov 27, 2025
+2,735
−1,520
Conversation
This file contains hidden or 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
06f7a80 to
d4efc16
Compare
04e2c73 to
b4be1b1
Compare
sangbida
reviewed
Nov 24, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
sangbida
reviewed
Nov 25, 2025
Useful for continuous streams. Signed-off-by: Rusty Russell <[email protected]>
This will allow a downgrade tool to attempt to downgrade a node to the previous version. Signed-off-by: Rusty Russell <[email protected]>
b4be1b1 to
0913020
Compare
This will make it easier to share with the downgrade tool. Signed-off-by: Rusty Russell <[email protected]>
57007ed to
e790da8
Compare
When installed, the name is `lightning-hsmtool`. We actually copy `tools/hsmtool` to `tools/lightning-hsmtool` but that's a silly step which we should get rid of. So: 1. Make sure our documentation always refers to it as lightning-hsmtool. 2. Make sure our tests invoke it as `lightning-hsmtool`. 3. Rename the C file. Signed-off-by: Rusty Russell <[email protected]>
And leave $(TOOLS) as user-visible tools. Signed-off-by: Rusty Russell <[email protected]>
Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: tools: `lightningd-downgrade` can downgrade your database from v25.12 to v25.09 if something goes wrong.
…de tool to access. Signed-off-by: Rusty Russell <[email protected]>
…ng-downgrade to use. Signed-off-by: Rusty Russell <[email protected]>
If they had a channel bias, and ran xpay, it will update the bias to a v2 bias (with a timestamp). We must downgrade that, or the older version won't load! Signed-off-by: Rusty Russell <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
In particular, document when downgrades are not possible. Signed-off-by: Rusty Russell <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
I noticed it was missing. Signed-off-by: Rusty Russell <[email protected]>
e790da8 to
5f80c5f
Compare
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.
Fairly easy, for this release. The real problem was writing the tests!