Skip to content
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

BOLT 7: Push the sending of announcements_signatures back a little (amended wording) #495

Merged
merged 2 commits into from
Nov 29, 2018

Conversation

rustyrussell
Copy link
Collaborator

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.

[ After much bikeshedding, wording rewritten but same effect -- RR ]

Closes lightning#468
Closes: lightning#474
@TheBlueMatt
Copy link
Collaborator

This does not fix #468?

@rustyrussell
Copy link
Collaborator Author

I though #468 suggested exactly this:

if, instead, a node SHOULD wait until it has both sent and received a funding_locked to send an announcement_signatures..

Thus, this changes the text to:

MUST NOT send announcement_signatures messages until funding_locked has been sent and received

However, since other nodes don't obey this, we add the suggestion that you may store an unexpected announcement_signatures msg (hmm, indent is wrong, tabs vs spaces it seems)

- if it has not sent funding_locked:
    - MAY defer handling the announcement_signatures until after it has sent funding_locked
    - otherwise:
	  - MUST ignore it.

@TheBlueMatt
Copy link
Collaborator

Oh, am I blind? In any case the proposed changes look fine to me, I just didn't think we were comfortable making breaking changes to the spec that may make existing implementations "invalid".

### Rationale

The reason for allowing deferring of a premature announcement_signatures is
that an earlier version of the spec did not require waiting for receipt of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meta:

maybe I am still to new to protocol development. but that seems like a lot of complex overhead to make a backward compatible fix for a former bug. is that the normal way to go?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In practice, allowing it through early turns out to be trivial (at least, in C-lightning). In future we may stop doing that, however. Meanwhile, usability trumps perfection...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants