Skip to content

Commit 0d10541

Browse files
committed
Repurpose flag to be more general
The flag means that the update shouldn't be broadcast to the network: it must be kept between the two peers and only included in payment errors.
1 parent 91e078e commit 0d10541

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

07-routing-gossip.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,12 @@ individual bits:
425425
| 0 | `direction` | Direction this update refers to. |
426426
| 1 | `disable` | Disable the channel. |
427427

428-
The `message_flags` bitfield is used to provide additional details about how to
429-
interpret some of the message fields:
428+
The `message_flags` bitfield is used to provide additional details about the message:
430429

431-
| Bit Position | Name | Field |
432-
| ------------- | ------------------------- | -------------------------------- |
433-
| 0 | `must_be_one` | |
434-
| 1 | `scid_alias` | `short_channel_id` |
430+
| Bit Position | Name |
431+
| ------------- | ---------------|
432+
| 0 | `must_be_one` |
433+
| 1 | `dont_forward` |
435434

436435
The `node_id` for the signature verification is taken from the corresponding
437436
`channel_announcement`: `node_id_1` if the least-significant bit of flags is 0
@@ -446,10 +445,7 @@ The origin node:
446445
`announce_channel` bit was not set).
447446
- MUST set the `short_channel_id` to either an `alias` it has
448447
received from the peer, or the real channel `short_channel_id`.
449-
- if it sets `short_channel_id` to an `alias`:
450-
- MUST set `scid_alias` to 1 in `message_flags`
451-
- otherwise:
452-
- MUST set `scid_alias` to 0 in `message_flags`
448+
- MUST set `dont_forward` to 1 in `message_flags`
453449
- MUST NOT forward such a `channel_update` to other peers, for privacy
454450
reasons.
455451
- Note: such a `channel_update`, one not preceded by a

0 commit comments

Comments
 (0)