features: don't announce onion_messages in bolt11 invoices.

As noted by Joost.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2021-11-30 13:36:05 +10:30
parent 4c63fedce9
commit 894f1841b4
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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