mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd: update comments now channel-type is merged.
It's in the main bolt, so remove qualifies from the bolt quote so they are checked. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -619,7 +619,7 @@ struct channel *any_channel_by_scid(struct lightningd *ld,
|
|||||||
p;
|
p;
|
||||||
p = peer_node_id_map_next(ld->peers, &it)) {
|
p = peer_node_id_map_next(ld->peers, &it)) {
|
||||||
list_for_each(&p->channels, chan, list) {
|
list_for_each(&p->channels, chan, list) {
|
||||||
/* BOLT-channel-type #2:
|
/* BOLT #2:
|
||||||
* - MUST always recognize the `alias` as a
|
* - MUST always recognize the `alias` as a
|
||||||
* `short_channel_id` for incoming HTLCs to this
|
* `short_channel_id` for incoming HTLCs to this
|
||||||
* channel.
|
* channel.
|
||||||
@@ -627,7 +627,7 @@ struct channel *any_channel_by_scid(struct lightningd *ld,
|
|||||||
if (chan->alias[LOCAL] &&
|
if (chan->alias[LOCAL] &&
|
||||||
short_channel_id_eq(scid, chan->alias[LOCAL]))
|
short_channel_id_eq(scid, chan->alias[LOCAL]))
|
||||||
return chan;
|
return chan;
|
||||||
/* BOLT-channel-type #2:
|
/* BOLT #2:
|
||||||
* - if `channel_type` has `option_scid_alias` set:
|
* - if `channel_type` has `option_scid_alias` set:
|
||||||
* - MUST NOT allow incoming HTLCs to this channel
|
* - MUST NOT allow incoming HTLCs to this channel
|
||||||
* using the real `short_channel_id`
|
* using the real `short_channel_id`
|
||||||
|
|||||||
Reference in New Issue
Block a user