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
This commit is contained in:
niftynei 2022-07-19 17:04:40 +09:30 committed by Rusty Russell
parent 67ce0ee3b2
commit 55e15c5f10

View file

@ -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,