Skip to content

Commit

Permalink
lightningd: use channel_type as we're supposed to for forward descisi…
Browse files Browse the repository at this point in the history
…ons.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Apr 3, 2023
1 parent 22dc119 commit a463a62
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lightningd/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,8 @@ struct channel *any_channel_by_scid(struct lightningd *ld,
* - MUST NOT allow incoming HTLCs to this channel
* 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
&& chan->alias[REMOTE]
&& !(chan->channel_flags & CHANNEL_FLAGS_ANNOUNCE_CHANNEL))
&& channel_type_has(chan->type, OPT_SCID_ALIAS))
continue;
if (chan->scid
&& short_channel_id_eq(scid, chan->scid))
Expand Down

0 comments on commit a463a62

Please sign in to comment.