Skip to content

Commit 5dc8db0

Browse files
committed
Relax requirements to avoid rebroadcasting spent channels
Some implementations don't always check whether channels are spent before relaying gossip, and thus cannot guarantee that they'll only relay unspent channels. We relax the requirements to a `SHOULD NOT` instead of a `MUST NOT` to reflect that.
1 parent b8ad1c2 commit 5dc8db0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

07-routing-gossip.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The receiving node:
228228
- SHOULD store this `channel_announcement`.
229229
- once its funding output has been spent OR reorganized out:
230230
- SHOULD forget a channel after a 72-block delay.
231-
- MUST NOT rebroadcast this `channel_announcement` to its peers.
231+
- SHOULD NOT rebroadcast this `channel_announcement` to its peers.
232232

233233
### Rationale
234234

@@ -510,7 +510,7 @@ The receiving node:
510510
channels.
511511
- if the channel output has been spent:
512512
- MUST ignore `channel_update`s, unless they have the `disable` bit set to 1.
513-
- MUST NOT rebroadcast `channel_update`s to its peers, unless they have the
513+
- SHOULD NOT rebroadcast `channel_update`s to its peers, unless they have the
514514
`disable` bit set to 1.
515515
- SHOULD accept `channel_update`s for its own channels (even if non-public),
516516
in order to learn the associated origin nodes' forwarding parameters.
@@ -875,7 +875,7 @@ The receiver:
875875
- If a `channel_announcement` has no corresponding `channel_update`s:
876876
- MUST NOT send the `channel_announcement`.
877877
- If the funding output of the `channel_announcement` has been spent:
878-
- MUST NOT send the `channel_announcement`.
878+
- SHOULD NOT send the `channel_announcement`.
879879
- Otherwise:
880880
- MUST consider the `timestamp` of the `channel_announcement` to be the `timestamp` of a corresponding `channel_update`.
881881
- MUST consider whether to send the `channel_announcement` after receiving the first corresponding `channel_update`.

0 commit comments

Comments
 (0)