Repository navigation
BOLT 7: Push the sending of announcements_signatures back a little - #474
TheBlueMatt wants to merge 1 commit into
Conversation
Technically this change may result in channels_announcements only coming from one end. However, because c-lightning already implements announcement_signatures in this way, in practice this will improve reliability of channel_announcements. Closes lightning#468
|
Uh, lol, oops'd completely wrong title/text. Fixed now, sorry to the email-digest folks. |
|
Yea, spellcheck is just dumb, counterparty is a word, yo. |
| - MAY fail the channel. | ||
| - if it has sent AND received a valid `announcement_signatures` message: | ||
| - SHOULD queue the `channel_announcement` message for its peers. | ||
| - MAY rely on its counterparty not sending an `announcement_signatures` |
There was a problem hiding this comment.
What's this trying to convey? That it's OK for the other side to violate this clause and that you should be prepared for it?
There was a problem hiding this comment.
You MAY rely on your counterparty to comply with the SHOULD NOT above in order to behave correctly. Otherwise you'd have to not rely on it, as a SHOULD NOT is not sufficient for you to rely on your counterparty following it.
|
FWIW, these are two independent processes. One gates being able to update the channel locally, while the other gates an advertisement so nodes can remotely trigger channel updates (via routing). |
|
Not really: the depth for funding_locked implies "I expect reorgs upto depth X". That also implies we don't accept the short channel id until depth X. That means, until I've sent you 'funding locked', you have no right to send me 'announcement_signatures'. The problem with the 'MAY rely' line is that it isn't actionable, and it doesn't combine with the SHOULD. We should make the first change a MUST, (actually, just s/has been sent/has been sent and received/) then if we want to add: The receiving node:
Then at the bottom of Rationale: The reason for allowing deferring of a premature |
Technically this change may result in channels_announcements only coming from one end. However, because c-lightning already implements announcement_signatures in this way, in practice this will improve reliability of channel_announcements. [ After much bikeshedding, wording rewritten but same effect -- RR ] Closes lightning#468 Closes: lightning#474
|
Your proposal doesn't fix the issue, though. The goal is to avoid having to needlessly store a message for later processing adding complexity for no reason whatsoever - your proposal just tells you that you have to do so. The MAY is there specifically because the SHOULD is otherwise not actionable - you have to assume your counterparty doesn't do this for completely correct behavior. I'm open to other wordings there. |
Technically this change may result in channels_announcements only coming from one end. However, because c-lightning already implements announcement_signatures in this way, in practice this will improve reliability of channel_announcements. [ After much bikeshedding, wording rewritten but same effect -- RR ] Closes #468 Closes: #474
Technically this change may result in channels_announcements only
coming from one end. However, because c-lightning already implements
announcement_signatures in this way, in practice this will improve
reliability of channel_announcements.
Closes #468
My understanding is lnd would need to be updated to do this, and I'm not sure about elair.