mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd: use channel_type as we're supposed to for forward descisions.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -627,11 +627,8 @@ struct channel *any_channel_by_scid(struct lightningd *ld,
|
|||||||
* - 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`
|
||||||
*/
|
*/
|
||||||
/* FIXME: We don't keep type is db, so assume all
|
|
||||||
* private channels which support aliases want this! */
|
|
||||||
if (!privacy_leak_ok
|
if (!privacy_leak_ok
|
||||||
&& chan->alias[REMOTE]
|
&& channel_type_has(chan->type, OPT_SCID_ALIAS))
|
||||||
&& !(chan->channel_flags & CHANNEL_FLAGS_ANNOUNCE_CHANNEL))
|
|
||||||
continue;
|
continue;
|
||||||
if (chan->scid
|
if (chan->scid
|
||||||
&& short_channel_id_eq(scid, chan->scid))
|
&& short_channel_id_eq(scid, chan->scid))
|
||||||
|
|||||||
Reference in New Issue
Block a user