Skip to content

Commit a16bfe9

Browse files
bolt2: forget the check about the update_* messages.
The rational around this commit is that a node should not care about what he receive but only about what it must not receive. The actual Close Channel spec tell us exactly when we need to fail, we need just to remove the confusing part related to the `update_*` Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
1 parent e60d594 commit a16bfe9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

02-peer-protocol.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ The sender:
393393
The recipient:
394394
- if `signature` is incorrect OR non-compliant with LOW-S-standard rule<sup>[LOWS](https://github.com/bitcoin/bitcoin/pull/6769)</sup>:
395395
- MUST send a `warning` and close the connection, or send an
396-
`error` and fail the channel.
396+
`error` and fail the channel.
397397

398398
#### Rationale
399399

@@ -516,7 +516,8 @@ Closing happens in two stages:
516516
| |<-(2)----- shutdown --------| |
517517
| | | |
518518
| | <complete all pending HTLCs> | |
519-
| A | ... | B |
519+
| | <must not add HTLCs> | |
520+
| A | ... | B |
520521
| | | |
521522
| |--(3)-- closing_signed F1--->| |
522523
| |<-(4)-- closing_signed F2----| |
@@ -545,13 +546,10 @@ A sending node:
545546
- if there are updates pending on the receiving node's commitment transaction:
546547
- MUST NOT send a `shutdown`.
547548
- MUST NOT send an `update_add_htlc` after a `shutdown`.
548-
- if no HTLCs remain in either commitment transaction:
549-
- MUST NOT send any `update` message after a `shutdown`.
550549
- SHOULD fail to route any HTLC added after it has sent `shutdown`.
551550
- if it sent a non-zero-length `shutdown_scriptpubkey` in `open_channel` or `accept_channel`:
552551
- MUST send the same value in `scriptpubkey`.
553552
- MUST set `scriptpubkey` in one of the following forms:
554-
555553
1. `OP_0` `20` 20-bytes (version 0 pay to witness pubkey hash), OR
556554
2. `OP_0` `32` 32-bytes (version 0 pay to witness script hash), OR
557555
3. if (and only if) `option_shutdown_anysegwit` is negotiated:

0 commit comments

Comments
 (0)