From 0697731da36ddf29ce00af0fddc065a201236913 Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Wed, 16 Aug 2023 16:04:04 -0500 Subject: [PATCH] offers: maintain public channel preference --- plugins/offers_invreq_hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/offers_invreq_hook.c b/plugins/offers_invreq_hook.c index 1a52a3cdd1f7..78a14b36250a 100644 --- a/plugins/offers_invreq_hook.c +++ b/plugins/offers_invreq_hook.c @@ -314,7 +314,7 @@ static struct command_result *listincoming_done(struct command *cmd, * we could use listpeers, but if it's private we probably * don't want to blinded route through it! */ pftok = json_get_member(buf, t, "peer_features"); - if (!pftok) + if (!pftok || !ci.public) continue; features = json_tok_bin_from_hex(tmpctx, buf, pftok); if (!feature_offered(features, OPT_ROUTE_BLINDING))