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 was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should indeed make it clearer that we mustn't create an infinite loop (even though I hope every implementation already does this correctly - eclair does). I'm nitpicking, but with the change you're proposing, if we strictly follow the spec without thinking, we'd still be sending one redundant
announcement_signatures:announcement_signatureson reconnection because of the requirement above ("If it has NOT previously received (...): MUST sent its ownannouncement_signaturesmessage.)announcement_signatures, they would respond with their ownannouncement_signatures, even though they already sent it right beforeannouncement_signaturesIt would be slightly more correct to change the spec to say that you only respond with your own
announcement_signaturesif you haven't already sent it since reconnecting:Also note that all of this will be cleaned up with taproot, where we will need nonces to be able to create our own
announcement_signatures, and will thus only re-send it after exchangingchannel_ready(which will contain those nonces). We won't be able to have a loop ofannouncement_signaturesmessage because we won't have nonces to create the partial signatures!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ddustin ping?