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 2: disallow sending multiple shutdown msg #977

Merged

Conversation

vincenzopalazzo
Copy link
Contributor

This is a second proposal different from #976 where it is not allowed to send multiple shutdown messages from the receiver viewpoint.

The rationale for this is to avoid bad cases like the following one that is permitted by the spec

     ____________________________________________
    | sender -> shutdown(script_one) -> receiver |
    | sender -> shutdown(script_two) -> receiver |
    | sender <- shutdown(script_one) <- receiver |
     --------------------------------------------

@vincenzopalazzo vincenzopalazzo changed the title bolt2: disallow sending multiple shutdown msg BOLT 2: disallow sending multiple shutdown msg Apr 11, 2022
@vincenzopalazzo vincenzopalazzo force-pushed the macros/disallow_multiple_shutdown branch from 1809526 to acb4646 Compare April 11, 2022 21:44
Copy link
Collaborator

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

Concept ACK

02-peer-protocol.md Outdated Show resolved Hide resolved
02-peer-protocol.md Outdated Show resolved Hide resolved
@vincenzopalazzo vincenzopalazzo force-pushed the macros/disallow_multiple_shutdown branch from acb4646 to 648dc5e Compare May 9, 2022 05:18
Copy link
Collaborator

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

ACK 648dc5e

02-peer-protocol.md Outdated Show resolved Hide resolved
02-peer-protocol.md Outdated Show resolved Hide resolved
This is a second proposal different from lightning#976 where it is not allowed to send multiple shutdown messages from the receiver viewpoint.

The rationale for this is to avoid bad cases like the following one that is permitted by the spec

```
     ____________________________________________
    | sender -> shutdown(script_one) -> receiver |
    | sender -> shutdown(script_two) -> receiver |
    | sender <- shutdown(script_one) <- receiver |
     --------------------------------------------
```

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
@vincenzopalazzo vincenzopalazzo force-pushed the macros/disallow_multiple_shutdown branch from 73bbb56 to 3afa56e Compare May 18, 2022 12:54
@vincenzopalazzo
Copy link
Contributor Author

Trivial rebase and fixed the changes discussed in the last meeting

Copy link
Collaborator

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

ACK 3afa56e, merging this trivial update as agreed during the last spec meeting.

@t-bast t-bast merged commit e701717 into lightning:master May 18, 2022
@vincenzopalazzo vincenzopalazzo deleted the macros/disallow_multiple_shutdown branch May 18, 2022 17:36
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.

4 participants