Skip to content

Commit

Permalink
bolt2: allow multiple shutdown message from the sender side.
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Apr 11, 2022
1 parent e60d594 commit 2be3f10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 02-peer-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ A sending node:
- MAY send a `shutdown` before a `funding_locked`, i.e. before the funding transaction has reached `minimum_depth`.
- if there are updates pending on the receiving node's commitment transaction:
- MUST NOT send a `shutdown`.
- MAY send multiple `shutdown` message, (but what happens if in the two shutdown message we insert different script? We need to accept only the last one sent?).
- MUST NOT send an `update_add_htlc` after a `shutdown`.
- if no HTLCs remain in either commitment transaction:
- MUST NOT send any `update` message after a `shutdown`.
Expand Down

0 comments on commit 2be3f10

Please sign in to comment.