mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
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:
parent
67ce0ee3b2
commit
55e15c5f10
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue