Repository navigation
Fix force close balance flake - #1239
Merged
tnull merged 3 commits intoNov 17, 2026
Merged
Conversation
tnull
commented
Nov 17, 2026
Collaborator
`settle_force_close_balance` asserted that the sweeper tracks the closed channel's output right after the sync that matured it. However, the output only reaches the sweeper once the `SpendableOutputs` event was handled in the background, and its sweep is only broadcast on a subsequent sync. On a slow CI runner the check could hence run while the funds were no longer a lightning balance and not yet a pending sweep balance, failing `channel_full_cycle_force_close`. We now keep syncing until the sweeper reports the sweep as broadcast before checking the balances. Co-Authored-By: HAL 9000
`connection_restart_behavior` slept for five seconds each time it waited for a connection to be established, i.e., 20 seconds per run, even though the peers usually connect right away. We now poll the peer lists instead and only keep the fixed wait where the test checks that no reconnect happens, as that can't be polled for. Co-Authored-By: HAL 9000
|
👋 Thanks for assigning @jkczyz as a reviewer! |
ajaysehwal
reviewed
Nov 17, 2026
The persisted-peer branch of the connection restart test asserted node A's connection state twice and never checked node B's, so a missing reconnect on B's side would not have been caught by that assertion. Assert on node B's peer details instead, as originally intended. Co-Authored-By: HAL 9000
jkczyz
approved these changes
Nov 17, 2026
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
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.