Remove spurious interactive-tx commit_sig
retransmission
#2966
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.
We fully implement lightning/bolts#1214 to stop retransmitting
commit_sig
when our peer has already received it. We also correctly setnext_commitment_number
to let our peer know whether we have received theircommit_sig
or not.Note that if our peer hasn't upgraded and always sends
next_commitment_number = current_commitment_number + 1
even when they haven't received ourcommit_sig
, this won't lead to a force-close: we will simply wait for them to send anerror
, which will never happen. Their channel will be stuck until they upgrade and sendnext_commitment_number = current_commitment_number
.Builds on top of #2965. This change must only be merged once:
remote_commitment_number
#2965next_commitment_number
during splice reconnect lightning-kmp#736 so that users can upgrade to avoid being stuck