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

Commits on May 18, 2022

  1. bolt2: disallow sending multiple shutdown msg

    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 committed May 18, 2022
    Configuration menu
    Copy the full SHA
    3afa56e View commit details
    Browse the repository at this point in the history