diff --git a/common/features.c b/common/features.c index 41daa4055..88207aa66 100644 --- a/common/features.c +++ b/common/features.c @@ -24,7 +24,10 @@ const char *feature_place_names[] = { NULL, "node", "channel", - "invoice" + "invoice", + "bolt12_offer", + "bolt12_invreq", + "bolt12_invoice", }; static const struct feature_style feature_styles[] = { diff --git a/plugins/libplugin.c b/plugins/libplugin.c index 51936be1c..c11be93ca 100644 --- a/plugins/libplugin.c +++ b/plugins/libplugin.c @@ -1475,6 +1475,12 @@ static struct feature_set *json_to_feature_set(struct plugin *plugin, p = CHANNEL_FEATURE; else if (json_tok_streq(buf, t, "invoice")) p = BOLT11_FEATURE; + else if (json_tok_streq(buf, t, "bolt12_offer")) + p = BOLT12_OFFER_FEATURE; + else if (json_tok_streq(buf, t, "bolt12_invreq")) + p = BOLT12_INVREQ_FEATURE; + else if (json_tok_streq(buf, t, "bolt12_invoice")) + p = BOLT12_INVOICE_FEATURE; else continue; fset->bits[p] = json_tok_bin_from_hex(fset, buf, t + 1);