Skip to content

Conversation

@rustyrussell
Copy link
Contributor

@rustyrussell rustyrussell commented Jan 13, 2026

Based on #8831

This is a separate PR because we don't need to port this back to v25.12.1

Changelog-None: tests only

@rustyrussell rustyrussell added this to the v26.04 milestone Jan 13, 2026
@rustyrussell rustyrussell requested a review from cdecker as a code owner January 13, 2026 06:43
@rustyrussell rustyrussell force-pushed the hsm-secret-fixes-with-tests branch 3 times, most recently from 8bdafaa to 02b6274 Compare January 14, 2026 02:53
sangbida and others added 14 commits January 19, 2026 12:56
Since we have changed our hsm_secret seed the node ids have all change hence the asseertions on the scids break. This changes it so that the direction is determined when the test executes.
This defaults to false for now: this breaks a lot of tests (since node ids change!)
once we switch to true.
Anything using a canned db depends on the node ids being generated from the old hsm seed.
We only support downgrade if you upgraded, so your hsm_secret will be old.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
 bookkeeper's fee tracking depends on deterministic channel structure, which depends on node ID ordering. I'm marking this with the old_hsmsecret option for now.
This test has been split into two to assert on both the old and the new hsm_secret
These are explicitly written to check that the values don't accidentally change,
which applies to both old and new styles.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Another one we want to make sure stays unchanged.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
… parameterize test_recover_command.

This matters for mnemonic nodes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This changes various tests in minor ways:

1. The "l2" secret key in tests/plugins/channeld_fakenet.c is updated.
2. The decompressed gossip data node id needs changing.
3. The coinmoves order changes in bookkeeper for anchors.
4. Various harcoded gossip constants change.
5. Some hardcoded makesecret results change.
6. zeroconf tests which hardcoded node ids change.
7. Arbitrary rune strings change.
8. A log message which uses node ids changes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell force-pushed the hsm-secret-fixes-with-tests branch from 02b6274 to 037d076 Compare January 19, 2026 02:33
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