Filter LegacyWaitForFundingConfirmed
on startup
#549
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.
There are two reasons why a channel would be in this state:
a) The peer was shut down during channel creation. The funding tx got published but the peer hasn't been started since.
b) The channel creation was actually aborted, and not only will the funding tx never be published, the channel was forgotten altogether by the counterparty. In this case, the channel stays permanently in the state
Syncing(LegacyWaitForFundingConfirmed)
because the counterparty never sendschannel_reestablish
and lightning-kmp will not send his when the remote backup is enabled.There are some users in the b) case, it caused them to be stuck during migration (because we were checking that all states were either synced or closed). We published a patch, but then the same users are stuck with the swap-in, because we do the same kind of check.
I fail to see why we even stored channels in that state in the first place: either the channel was actually created and it would be restored upon reconnection, or the channel creation was aborted and it's better to forget about it.