From a463a6299887a23f2683014b9300c103e5146b06 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 3 Apr 2023 14:48:49 +0930 Subject: [PATCH] lightningd: use channel_type as we're supposed to for forward descisions. Signed-off-by: Rusty Russell --- lightningd/channel.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lightningd/channel.c b/lightningd/channel.c index 0a2ebd39f74b..2b8e8cdf8d98 100644 --- a/lightningd/channel.c +++ b/lightningd/channel.c @@ -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))