mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-10 08:34:19 +01:00
lightningd: change msatoshi args to amount_msat.
This is consistent with our output changes, and increases consistency. It also keeps future sanity checks happy, that we only use JSON msat helpers with '_msat' fields. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice`: `msatoshi` argument is now called `amount_msat` to match other fields. Changelog-Deprecated: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice` `msatoshi` (use `amount_msat`)
This commit is contained in:
@@ -1233,7 +1233,7 @@ static struct command_result *json_fetchinvoice(struct command *cmd,
|
||||
invreq = tlv_invoice_request_new(sent);
|
||||
if (!param(cmd, buffer, params,
|
||||
p_req("offer", param_offer, &sent->offer),
|
||||
p_opt("msatoshi", param_msat, &msat),
|
||||
p_opt("amount_msat|msatoshi", param_msat, &msat),
|
||||
p_opt("quantity", param_u64, &invreq->quantity),
|
||||
p_opt("recurrence_counter", param_number,
|
||||
&invreq->recurrence_counter),
|
||||
@@ -1647,7 +1647,7 @@ static struct command_result *json_sendinvoice(struct command *cmd,
|
||||
if (!param(cmd, buffer, params,
|
||||
p_req("offer", param_offer, &sent->offer),
|
||||
p_req("label", param_label, &sent->inv_label),
|
||||
p_opt("msatoshi", param_msat, &msat),
|
||||
p_opt("amount_msat|msatoshi", param_msat, &msat),
|
||||
p_opt_def("timeout", param_number, &timeout, 90),
|
||||
p_opt("quantity", param_u64, &sent->inv->quantity),
|
||||
NULL))
|
||||
|
||||
Reference in New Issue
Block a user