mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
bkpr: account name is required for bkpr-inspect
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user