From 894f1841b44c567d0232bf8b8df7867b03ddf9e9 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 30 Nov 2021 13:36:05 +1030 Subject: [PATCH] features: don't announce onion_messages in bolt11 invoices. As noted by Joost. Signed-off-by: Rusty Russell --- common/features.c | 2 +- common/features.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/features.c b/common/features.c index c91ab9503..f84375989 100644 --- a/common/features.c +++ b/common/features.c @@ -69,7 +69,7 @@ static const struct feature_style feature_styles[] = { { OPT_ONION_MESSAGES, .copy_style = { [INIT_FEATURE] = FEATURE_REPRESENT, [NODE_ANNOUNCE_FEATURE] = FEATURE_REPRESENT, - [BOLT11_FEATURE] = FEATURE_REPRESENT, + [BOLT11_FEATURE] = FEATURE_DONT_REPRESENT, [CHANNEL_FEATURE] = FEATURE_DONT_REPRESENT} }, { OPT_SHUTDOWN_WRONG_FUNDING, .copy_style = { [INIT_FEATURE] = FEATURE_REPRESENT, diff --git a/common/features.h b/common/features.h index 4bb2a78ec..d41c81320 100644 --- a/common/features.h +++ b/common/features.h @@ -137,7 +137,7 @@ const char *fmt_featurebits(const tal_t *ctx, const u8 *featurebits); /* BOLT-1ede04a1a3225581e265b3ce96984ba88253a4a4 #9: * - * | 38/39 | `option_onion_messages` |... INC+ ... + * | 38/39 | `option_onion_messages` |... IN ... */ #define OPT_ONION_MESSAGES 38