diff --git a/common/bolt12.c b/common/bolt12.c index b845031f1..7c812bd56 100644 --- a/common/bolt12.c +++ b/common/bolt12.c @@ -214,7 +214,7 @@ struct tlv_offer *offer_decode(const tal_t *ctx, /* BOLT-offers #12: * - * - if offer_amount is set and offer_description is not set: + * - if `offer_amount` is set and `offer_description` is not set: * - MUST NOT respond to the offer. */ if (!offer->offer_description && offer->offer_amount) { @@ -288,7 +288,7 @@ struct tlv_invoice_request *invrequest_decode(const tal_t *ctx, /* BOLT-offers #12: * The reader: *... - * - MUST fail the request if any non-signature TLV fields outside the inclusive ranges: 0 to 159 and 1000000000 to 2999999999 + * - MUST fail the request if any non-signature TLV fields are outside the inclusive ranges: 0 to 159 and 1000000000 to 2999999999 */ badf = any_field_outside_range(invrequest->fields, true, 0, 159, diff --git a/devtools/bolt12-cli.c b/devtools/bolt12-cli.c index 49f093700..c8d607b5c 100644 --- a/devtools/bolt12-cli.c +++ b/devtools/bolt12-cli.c @@ -104,9 +104,12 @@ static bool print_offer_amount(const struct bitcoin_blkid *chains, * - MUST specify `offer_currency` `iso4217` as an ISO 4712 three-letter code. * - MUST specify `offer_amount` in the currency unit adjusted by the ISO 4712 * exponent (e.g. USD cents). + * - MUST set `offer_description` to a complete description of the purpose + * of the payment. * - otherwise: * - MUST NOT set `offer_amount` * - MUST NOT set `offer_currency` + * - MAY set `offer_description` */ if (!iso4217) { if (tal_count(chains) == 0) diff --git a/plugins/offers_offer.c b/plugins/offers_offer.c index 2cdd875d3..e036b483e 100644 --- a/plugins/offers_offer.c +++ b/plugins/offers_offer.c @@ -529,7 +529,7 @@ struct command_result *json_offer(struct command *cmd, /* BOLT-offers #12: * - * - if offer_amount is set and offer_description is not set: + * - if `offer_amount` is set and `offer_description` is not set: * - MUST NOT respond to the offer. */ if (!offer->offer_description && offer->offer_amount)