From aa8a7f786f70ee81f86411fa3fd28aa0ae67a8c7 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Tue, 12 Nov 2024 17:02:01 -0800 Subject: [PATCH] plugin: expose secret init error Unable to build master due to incorrect init definition. Changelog-None. --- plugins/exposesecret.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/exposesecret.c b/plugins/exposesecret.c index 31e812816916..ea50fa03ce01 100644 --- a/plugins/exposesecret.c +++ b/plugins/exposesecret.c @@ -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),