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:
ZmnSCPxj
2018-01-12 14:39:57 +00:00
committed by Rusty Russell
parent 7c5dec01fe
commit c402d834e7

View File

@@ -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;
} }