1
0
Fork 0
mirror of https://github.com/lightning/bolts.git synced 2025-03-13 11:35:41 +01:00

Clarify a few requirements

As suggested by @yyforyongyu.
This commit is contained in:
t-bast 2025-01-27 10:01:53 +01:00 committed by Bastien Teinturier
parent 7b635f0f2d
commit 90662b1323

View file

@ -1868,7 +1868,7 @@ The sender of `closing_complete` (aka. "the closer"):
- 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).
- If the closee's output amount is dust:
- MUST set `closer_output_only`.
- SHOULD NOT set `closer_and_closee_outputs`.
- MUST NOT set `closer_and_closee_outputs`.
- Otherwise:
- MUST set both `closer_output_only` and `closer_and_closee_outputs`.
- 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"):
- SHOULD ignore `closing_complete`.
- SHOULD send a `warning`.
- SHOULD close the connection.
- If `closer_scriptpubkey` is invalid (as detailed in the [`shutdown` requirements](#closing-initiation-shutdown)):
- SHOULD ignore `closing_complete`.
- SHOULD send a `warning`.
- SHOULD close the connection.
- If `closer_scriptpubkey` is a valid `OP_RETURN` script:
- MUST set its output amount to zero so that all funds go to fees, as specified in [BOLT #3](03-transactions.md#closing-transaction).
- MUST generate the remote closing transaction as specified in [BOLT #3](03-transactions.md#closing-transaction).