mirror of
https://github.com/lightning/bolts.git
synced 2025-03-13 19:37:31 +01:00
BOLT 2: fix battling requirements for shutdown
The shutdown section says: ``` - MUST NOT send multiple `shutdown` messages. ``` But the reconnection section says: ``` - upon reconnection: - if it has sent a previous `shutdown`: - MUST retransmit `shutdown`. ``` So clearly, remove the former. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
dc376ca241
commit
a1ae46ddc3
1 changed files with 0 additions and 1 deletions
|
@ -1555,7 +1555,6 @@ A sending node:
|
||||||
- MAY send a `shutdown` before a `channel_ready`, i.e. before the funding transaction has reached `minimum_depth`.
|
- MAY send a `shutdown` before a `channel_ready`, i.e. before the funding transaction has reached `minimum_depth`.
|
||||||
- if there are updates pending on the receiving node's commitment transaction:
|
- if there are updates pending on the receiving node's commitment transaction:
|
||||||
- MUST NOT send a `shutdown`.
|
- MUST NOT send a `shutdown`.
|
||||||
- MUST NOT send multiple `shutdown` messages.
|
|
||||||
- MUST NOT send an `update_add_htlc` after a `shutdown`.
|
- MUST NOT send an `update_add_htlc` after a `shutdown`.
|
||||||
- if no HTLCs remain in either commitment transaction (including dust HTLCs)
|
- if no HTLCs remain in either commitment transaction (including dust HTLCs)
|
||||||
and neither side has a pending `revoke_and_ack` to send:
|
and neither side has a pending `revoke_and_ack` to send:
|
||||||
|
|
Loading…
Add table
Reference in a new issue