-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use warning message in quick close #904
Conversation
If a warning message is added (again without a feature bit??), and you send this to a peer that maybe understands the new co-op close TLV field (since there's actually no feature bit, so you just need to guess), then how do you know they actually even support this feature? This is the whole reason we added dependencies to feature bits: we can make this relationship explicit, namely that the new co-op close TLV depends on understanding of the warning message (as it's used to signal an error case). |
That condition is nested below Again, your argument is true in general but in this specific case it's completely unnecessary. |
Additional context here may be useful: the warning message is only used to indicate "hey, we couldn't come to agreement!", but that's also implied by the fact that, well, you didn't see a useful response. No matter if the peer responds or not, you have to eventually time-out the negotiation and force-close (or let the user do that, which they'll presumably do if we take forever to negotiate fees), which is the same as today. The warning message is just a helpful bit of context for users who read their debug logs, but the response to the condition that is warned on should really be the same either way. |
3f62437
to
db636f0
Compare
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.
ack db636f0
Ack, easy! |
Once #834 have been accepted to the spec, we should use a warning in quick close instead of failing the connection.