mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
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>
This commit is contained in:
committed by
Christian Decker
parent
dd599706cd
commit
dbef4a1827
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user