channeld: Fix the shutdown_sent billboard direction #4263
Merged
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.
While debugging a hanging channel with a user I noticed that they
called
close
on a channel, resulting in the channel showingCHANNELD_SHUTTING_DOWN
, but the billboard seemed to show theinformation the wrong way around:
Aside from the hung channel, the switch in direction of the status
seemed weird. Checking the billboard code seems to have the status
switched as well:
lightning/channeld/channeld.c
Lines 223 to 226 in ff88308
We set
shutdown_sent[LOCAL]
when we send the shutdown:lightning/channeld/channeld.c
Lines 823 to 839 in ff88308
And we set
shutdown_sent[REMOTE]
when we receive the shutdown:lightning/channeld/channeld.c
Lines 1730 to 1781 in ff88308
So I think the billboard code just needs to be switched around.
Changelog-Fixed: JSON-RPC: The status of the shutdown meesages being exchanged is now displayed correctly.