From 3dcfd2d0e48c0a8704518aebf3f119337f6b1888 Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 19 Jul 2022 17:04:39 +0930 Subject: [PATCH] bkpr: account name is required for bkpr-inspect --- plugins/bkpr/bookkeeper.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/bkpr/bookkeeper.c b/plugins/bkpr/bookkeeper.c index be91bc3a8..076219b67 100644 --- a/plugins/bkpr/bookkeeper.c +++ b/plugins/bkpr/bookkeeper.c @@ -230,14 +230,10 @@ static struct command_result *json_inspect(struct command *cmd, /* Only available for channel accounts? */ if (!param(cmd, buf, params, - p_opt("account", param_string, &acct_name), + p_req("account", param_string, &acct_name), NULL)) return command_param_failed(); - if (!acct_name) - return command_fail(cmd, PLUGIN_ERROR, - "Account not provided"); - if (streq(acct_name, WALLET_ACCT) || streq(acct_name, EXTERNAL_ACCT)) return command_fail(cmd, PLUGIN_ERROR,