mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
invoice: Rename 'amount' argument of 'invoice' RPC to 'msatoshi'.
The manfile and the online help use 'msatoshi', the returned response uses 'msatoshi', nearly every invoice-related monetary amount is labelled 'msatoshi' and not 'amount'.
This commit is contained in:
@@ -179,12 +179,12 @@ static void json_invoice(struct command *cmd,
|
|||||||
u64 expiry = 3600;
|
u64 expiry = 3600;
|
||||||
|
|
||||||
if (!json_get_params(buffer, params,
|
if (!json_get_params(buffer, params,
|
||||||
"amount", &msatoshi,
|
"msatoshi", &msatoshi,
|
||||||
"label", &label,
|
"label", &label,
|
||||||
"description", &desc,
|
"description", &desc,
|
||||||
"?expiry", &exp,
|
"?expiry", &exp,
|
||||||
NULL)) {
|
NULL)) {
|
||||||
command_fail(cmd, "Need {amount}, {label} and {description}");
|
command_fail(cmd, "Need {msatoshi}, {label} and {description}");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user