Skip to content

Commit

Permalink
plugin: expose secret init error
Browse files Browse the repository at this point in the history
Unable to build master due to incorrect init definition.

Changelog-None.
  • Loading branch information
ShahanaFarooqui committed Nov 13, 2024
1 parent 8293352 commit aa8a7f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/exposesecret.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ static struct command_result *json_exposesecret(struct command *cmd,
return command_finished(cmd, js);
}

static const char *init(struct plugin *plugin,
static const char *init(struct command *init_cmd,
const char *buf UNUSED, const jsmntok_t *config UNUSED)
{
struct exposesecret *exposesecret = exposesecret_data(plugin);
rpc_scan(plugin, "getinfo",
struct exposesecret *exposesecret = exposesecret_data(init_cmd->plugin);
rpc_scan(init_cmd, "getinfo",
take(json_out_obj(NULL, NULL, NULL)),
"{id:%,alias:%}",
JSON_SCAN(json_to_pubkey, &exposesecret->our_node_id),
Expand Down

0 comments on commit aa8a7f7

Please sign in to comment.