Skip to content

Conversation

@rustyrussell
Copy link
Contributor

Fairly easy, for this release. The real problem was writing the tests!

@rustyrussell rustyrussell added this to the v25.12 milestone Nov 20, 2025
@rustyrussell rustyrussell force-pushed the guilt/downgrade-tool branch 3 times, most recently from 06f7a80 to d4efc16 Compare November 21, 2025 01:54
@rustyrussell rustyrussell force-pushed the guilt/downgrade-tool branch 4 times, most recently from 04e2c73 to b4be1b1 Compare November 22, 2025 04:15
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]>
This will make it easier to share with the downgrade tool.

Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell rustyrussell force-pushed the guilt/downgrade-tool branch 3 times, most recently from 57007ed to e790da8 Compare November 27, 2025 06:24
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.
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]>
In particular, document when downgrades are not possible.

Signed-off-by: Rusty Russell <[email protected]>
I noticed it was missing.

Signed-off-by: Rusty Russell <[email protected]>
@rustyrussell rustyrussell merged commit 385b6a9 into ElementsProject:master Nov 27, 2025
33 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants