From 6eb7a4cbf2caf60aac9cc2f7264fc8fa93a66ff2 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 12 Jan 2023 14:26:38 +1030 Subject: [PATCH] plugins: update to match latest offers text. ``` make check-source-bolt CHECK_BOLT_PREFIX="--prefix=BOLT-offers" BOLTVERSION=guilt/offers ``` In this case, only trivial mods. Signed-off-by: Rusty Russell --- plugins/fetchinvoice.c | 2 +- plugins/offers_invreq_hook.c | 2 +- plugins/offers_offer.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/fetchinvoice.c b/plugins/fetchinvoice.c index a70577065..89f7b38d4 100644 --- a/plugins/fetchinvoice.c +++ b/plugins/fetchinvoice.c @@ -1478,7 +1478,7 @@ static struct command_result *json_sendinvoice(struct command *cmd, /* BOLT-offers #12: * - MUST set `invoice_created_at` to the number of seconds since Midnight 1 - * January 1970, UTC when the offer was created. + * January 1970, UTC when the invoice was created. * - MUST set `invoice_amount` to the minimum amount it will accept, in units of * the minimal lightning-payable unit (e.g. milli-satoshis for bitcoin) for * `invreq_chain`. diff --git a/plugins/offers_invreq_hook.c b/plugins/offers_invreq_hook.c index 9d7989568..8091759bc 100644 --- a/plugins/offers_invreq_hook.c +++ b/plugins/offers_invreq_hook.c @@ -963,7 +963,7 @@ static struct command_result *listoffers_done(struct command *cmd, /* BOLT-offers #12: * - MUST set `invoice_created_at` to the number of seconds since - * Midnight 1 January 1970, UTC when the offer was created. + * Midnight 1 January 1970, UTC when the invoice was created. */ ir->inv->invoice_created_at = tal(ir->inv, u64); *ir->inv->invoice_created_at = time_now().ts.tv_sec; diff --git a/plugins/offers_offer.c b/plugins/offers_offer.c index e2ba3d81d..d4ec501df 100644 --- a/plugins/offers_offer.c +++ b/plugins/offers_offer.c @@ -415,9 +415,9 @@ struct command_result *json_invoicerequest(struct command *cmd, /* BOLT-offers #12: * - otherwise (not responding to an offer): - * - MUST set (or not set) `offer_metadata`, `offer_description`, `offer_absolute_expiry`, `offer_paths` and `offer_issuer` as it would for an offer. + * - MUST set (or not set) `offer_description`, `offer_absolute_expiry`, `offer_paths` and `offer_issuer` as it would for an offer. * - MUST set `invreq_payer_id` as it would set `offer_node_id` for an offer. - * - MUST NOT include `signature`, `offer_chains`, `offer_amount`, `offer_currency`, `offer_features`, `offer_quantity_max` or `offer_node_id` + * - MUST NOT include `signature`, `offer_metadata`, `offer_chains`, `offer_amount`, `offer_currency`, `offer_features`, `offer_quantity_max` or `offer_node_id` * - if the chain for the invoice is not solely bitcoin: * - MUST specify `invreq_chain` the offer is valid for. * - MUST set `invreq_amount`.