Explicit commit_sig
retransmission for interactive-tx
#1289
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.
When disconnecting in the middle of the signing steps of an
interactive-tx
transaction, we must retransmit signatures on reconnection to complete theinteractive-tx
protocol.Nodes first exchange
commitment_signed
, followed bytx_signatures
once they have both sent and receivedcommitment_signed
.We previously always retransmitted
commitment_signed
, even when our peer had already received it. We now include an explicit bitfield that lets nodes requestcommitment_signed
if they haven't received it.Note that this is a breaking change, and we are thus changing the TLV type to make it easier to detect. In practice it should be fine, since only
eclair
andcln
have shipped support for dual funding, and those two implementations are already incompatible on reconnection becauseeclair
implements #1214 butcln
doesn't. This edge case only creates an issue when nodes disconnect after exchangingtx_complete
but before receiving signatures, which should happen very infrequently.Replaces #1214.