Skip to content

Commit 922b61f

Browse files
committed
Clarify a few requirements
As suggested by @yyforyongyu.
1 parent 858b4d9 commit 922b61f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

02-peer-protocol.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ The sender of `closing_complete` (aka. "the closer"):
18681868
- If it does, the output value MUST be set to zero so that all funds go to fees, as specified in [BOLT #3](03-transactions.md#closing-transaction).
18691869
- If the closee's output amount is dust:
18701870
- MUST set `closer_output_only`.
1871-
- SHOULD NOT set `closer_and_closee_outputs`.
1871+
- MUST NOT set `closer_and_closee_outputs`.
18721872
- Otherwise:
18731873
- MUST set both `closer_output_only` and `closer_and_closee_outputs`.
18741874
- MUST generate its closing transaction as specified in [BOLT #3](03-transactions.md#closing-transaction).
@@ -1887,6 +1887,10 @@ The receiver of `closing_complete` (aka. "the closee"):
18871887
- SHOULD ignore `closing_complete`.
18881888
- SHOULD send a `warning`.
18891889
- SHOULD close the connection.
1890+
- If `closer_scriptpubkey` is invalid (as detailed in the [`shutdown` requirements](#closing-initiation-shutdown)):
1891+
- SHOULD ignore `closing_complete`.
1892+
- SHOULD send a `warning`.
1893+
- SHOULD close the connection.
18901894
- If `closer_scriptpubkey` is a valid `OP_RETURN` script:
18911895
- MUST set its output amount to zero so that all funds go to fees, as specified in [BOLT #3](03-transactions.md#closing-transaction).
18921896
- MUST generate the remote closing transaction as specified in [BOLT #3](03-transactions.md#closing-transaction).

0 commit comments

Comments
 (0)