mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
common: fix up some minor typos in BOLT quotes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
e8a38f111d
commit
98f07e92c2
3 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue