mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
parent
9aefe3d40a
commit
6eb7a4cbf2
3 changed files with 4 additions and 4 deletions
|
@ -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`.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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`.
|
||||
|
|
Loading…
Add table
Reference in a new issue