Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spelling: its listinvoices and listinvoicerequests #7244

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8364,7 +8364,7 @@
}
],
"pre_return_value_notes": [
"Note: The return is the same as an object from lightning-listinvoice(7)."
"Note: The return is the same as an object from lightning-listinvoices(7)."
]
},
"errors": [
Expand Down Expand Up @@ -8426,7 +8426,7 @@
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"see_also": [
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-waitinvoice(7)",
"lightning-invoice(7)",
"lightning-autoclean-status(7)"
Expand Down Expand Up @@ -8993,15 +8993,15 @@
}
},
"pre_return_value_notes": [
"Note: the returned object is the same format as **listinvoicerequest**."
"Note: the returned object is the same format as **listinvoicerequests**."
]
},
"author": [
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"see_also": [
"lightning-invoicerequest(7)",
"lightning-listinvoicerequest(7)"
"lightning-listinvoicerequests(7)"
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
Expand Down Expand Up @@ -13350,7 +13350,7 @@
"see_also": [
"lightning-listpays(7)",
"lightning-decodepay(7)",
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-getroute(7)",
"lightning-invoice(7)"
Expand Down Expand Up @@ -21622,7 +21622,7 @@
"see_also": [
"lightning-listpays(7)",
"lightning-sendpay(7)",
"lightning-listinvoice(7)"
"lightning-listinvoices(7)"
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
Expand Down Expand Up @@ -24473,7 +24473,7 @@
"see_also": [
"lightning-listpays(7)",
"lightning-decodepay(7)",
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-getroute(7)",
"lightning-invoice(7)"
Expand Down Expand Up @@ -26900,7 +26900,7 @@
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"see_also": [
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-getroute(7)",
"lightning-invoice(7)",
Expand Down Expand Up @@ -29998,7 +29998,7 @@
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"see_also": [
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-listforwards(7)",
"lightning-listsendpays(7)"
],
Expand All @@ -30013,7 +30013,7 @@
"rpc": "waitanyinvoice",
"title": "Command for waiting for payments",
"description": [
"The **waitanyinvoice** RPC command waits until an invoice is paid, then returns a single entry as per **listinvoice**. It will not return for any invoices paid prior to or including the *lastpay_index*.",
"The **waitanyinvoice** RPC command waits until an invoice is paid, then returns a single entry as per **listinvoices**. It will not return for any invoices paid prior to or including the *lastpay_index*.",
"",
"This is usually called iteratively: once with no arguments, then repeatedly with the returned *pay_index* entry. This ensures that no paid invoice is missed. The *pay_index* is a monotonically-increasing number assigned to an invoice when it gets paid. The first valid *pay_index* is 1."
],
Expand Down Expand Up @@ -30280,7 +30280,7 @@
],
"see_also": [
"lightning-waitinvoice(7)",
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-invoice(7)"
],
Expand Down Expand Up @@ -30380,7 +30380,7 @@
"rpc": "waitinvoice",
"title": "Command for waiting for specific payment",
"description": [
"The **waitinvoice** RPC command waits until a specific invoice is paid, then returns that single entry as per **listinvoice**."
"The **waitinvoice** RPC command waits until a specific invoice is paid, then returns that single entry as per **listinvoices**."
],
"request": {
"required": [
Expand Down Expand Up @@ -30624,7 +30624,7 @@
],
"see_also": [
"lightning-waitanyinvoice(7)",
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-invoice(7)"
],
Expand Down
4 changes: 2 additions & 2 deletions doc/schemas/lightning-delinvoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
}
],
"pre_return_value_notes": [
"Note: The return is the same as an object from lightning-listinvoice(7)."
"Note: The return is the same as an object from lightning-listinvoices(7)."
]
},
"errors": [
Expand Down Expand Up @@ -328,7 +328,7 @@
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"see_also": [
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-waitinvoice(7)",
"lightning-invoice(7)",
"lightning-autoclean-status(7)"
Expand Down
4 changes: 2 additions & 2 deletions doc/schemas/lightning-disableinvoicerequest.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
}
},
"pre_return_value_notes": [
"Note: the returned object is the same format as **listinvoicerequest**."
"Note: the returned object is the same format as **listinvoicerequests**."
]
},
"author": [
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"see_also": [
"lightning-invoicerequest(7)",
"lightning-listinvoicerequest(7)"
"lightning-listinvoicerequests(7)"
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/lightning-keysend.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
"see_also": [
"lightning-listpays(7)",
"lightning-decodepay(7)",
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-getroute(7)",
"lightning-invoice(7)"
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/lightning-listsendpays.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@
"see_also": [
"lightning-listpays(7)",
"lightning-sendpay(7)",
"lightning-listinvoice(7)"
"lightning-listinvoices(7)"
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/lightning-pay.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
"see_also": [
"lightning-listpays(7)",
"lightning-decodepay(7)",
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-getroute(7)",
"lightning-invoice(7)"
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/lightning-sendpay.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"see_also": [
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-getroute(7)",
"lightning-invoice(7)",
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/lightning-wait.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
"Rusty Russell <<[email protected]>> is mainly responsible."
],
"see_also": [
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-listforwards(7)",
"lightning-listsendpays(7)"
],
Expand Down
4 changes: 2 additions & 2 deletions doc/schemas/lightning-waitanyinvoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"rpc": "waitanyinvoice",
"title": "Command for waiting for payments",
"description": [
"The **waitanyinvoice** RPC command waits until an invoice is paid, then returns a single entry as per **listinvoice**. It will not return for any invoices paid prior to or including the *lastpay_index*.",
"The **waitanyinvoice** RPC command waits until an invoice is paid, then returns a single entry as per **listinvoices**. It will not return for any invoices paid prior to or including the *lastpay_index*.",
"",
"This is usually called iteratively: once with no arguments, then repeatedly with the returned *pay_index* entry. This ensures that no paid invoice is missed. The *pay_index* is a monotonically-increasing number assigned to an invoice when it gets paid. The first valid *pay_index* is 1."
],
Expand Down Expand Up @@ -272,7 +272,7 @@
],
"see_also": [
"lightning-waitinvoice(7)",
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-invoice(7)"
],
Expand Down
4 changes: 2 additions & 2 deletions doc/schemas/lightning-waitinvoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"rpc": "waitinvoice",
"title": "Command for waiting for specific payment",
"description": [
"The **waitinvoice** RPC command waits until a specific invoice is paid, then returns that single entry as per **listinvoice**."
"The **waitinvoice** RPC command waits until a specific invoice is paid, then returns that single entry as per **listinvoices**."
],
"request": {
"required": [
Expand Down Expand Up @@ -249,7 +249,7 @@
],
"see_also": [
"lightning-waitanyinvoice(7)",
"lightning-listinvoice(7)",
"lightning-listinvoices(7)",
"lightning-delinvoice(7)",
"lightning-invoice(7)"
],
Expand Down
6 changes: 3 additions & 3 deletions plugins/bkpr/bookkeeper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,8 @@ static char *fetch_out_desc_invstr(const tal_t *ctx, const char *buf,
}

static struct command_result *
listinvoice_done(struct command *cmd, const char *buf,
const jsmntok_t *result, struct sha256 *payment_hash)
listinvoices_done(struct command *cmd, const char *buf,
const jsmntok_t *result, struct sha256 *payment_hash)
{
size_t i;
const jsmntok_t *inv_arr_tok, *inv_tok;
Expand Down Expand Up @@ -1270,7 +1270,7 @@ static struct command_result *lookup_invoice_desc(struct command *cmd,
if (!amount_msat_zero(credit))
req = jsonrpc_request_start(cmd->plugin, cmd,
"listinvoices",
listinvoice_done,
listinvoices_done,
log_error,
payment_hash);
else
Expand Down
Loading