Browse Source

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'.
ppa-0.6.1
ZmnSCPxj 7 years ago
committed by Rusty Russell
parent
commit
c402d834e7
  1. 4
      lightningd/invoice.c

4
lightningd/invoice.c

@ -179,12 +179,12 @@ static void json_invoice(struct command *cmd,
u64 expiry = 3600;
if (!json_get_params(buffer, params,
"amount", &msatoshi,
"msatoshi", &msatoshi,
"label", &label,
"description", &desc,
"?expiry", &exp,
NULL)) {
command_fail(cmd, "Need {amount}, {label} and {description}");
command_fail(cmd, "Need {msatoshi}, {label} and {description}");
return;
}

Loading…
Cancel
Save