Browse Source

pay: remove gratuitous check for msatoshitok being 'null'.

json_get_params does this for us.

Fixes: 78adf0b (pay: allow 'null' msatoshi field.)
Reported-by: ZmnSCPxj
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
dbef4a1827
  1. 2
      lightningd/pay.c

2
lightningd/pay.c

@ -444,7 +444,7 @@ static void json_pay(struct command *cmd,
if (b11->msatoshi) {
msatoshi = *b11->msatoshi;
if (msatoshitok && !json_tok_is_null(buffer, msatoshitok)) {
if (msatoshitok) {
command_fail(cmd, "msatoshi parameter unnecessary");
return;
}

Loading…
Cancel
Save