From c402d834e7c68ad3bd2b465baf647e40ed6e7bc2 Mon Sep 17 00:00:00 2001 From: ZmnSCPxj Date: Fri, 12 Jan 2018 14:39:57 +0000 Subject: [PATCH] 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'. --- lightningd/invoice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightningd/invoice.c b/lightningd/invoice.c index 4c7912ffd..ccd4c1a3f 100644 --- a/lightningd/invoice.c +++ b/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; }