From 55e15c5f10ceef410e247450c29c3ae7c6230874 Mon Sep 17 00:00:00 2001 From: niftynei Date: Tue, 19 Jul 2022 17:04:40 +0930 Subject: [PATCH] bkpr: correctly pass in command for `jsonrpc_request_start` We weren't passing the command, which meant that it wasn't getting populated correctly. We do that now, it fixes some crashes --- plugins/bkpr/bookkeeper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/bkpr/bookkeeper.c b/plugins/bkpr/bookkeeper.c index ec1ba8d01..301289274 100644 --- a/plugins/bkpr/bookkeeper.c +++ b/plugins/bkpr/bookkeeper.c @@ -1131,7 +1131,7 @@ static struct command_result *json_balance_snapshot(struct command *cmd, if (tal_count(new_accts) > 0) { struct out_req *req; - req = jsonrpc_request_start(cmd->plugin, NULL, + req = jsonrpc_request_start(cmd->plugin, cmd, "listpeers", listpeers_multi_done, log_error, @@ -1319,7 +1319,7 @@ parse_and_log_chain_move(struct command *cmd, info = tal(NULL, struct event_info); info->ev = tal_steal(info, e); info->acct = tal_steal(info, acct); - req = jsonrpc_request_start(cmd->plugin, NULL, + req = jsonrpc_request_start(cmd->plugin, cmd, "listpeers", listpeers_done, log_error,