Skip to content

Commit

Permalink
fixup! lightningd/jsonrpc: Add a 'rpc_command' hook
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Mar 6, 2020
1 parent 467173f commit 81ad2a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightningd/jsonrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,8 @@ static void rpc_command_hook_serialize(struct rpc_command_hook_payload *p,
json_object_start(s, "rpc_command");

#ifdef COMPAT_V081
json_add_tok(s, "rpc_command", p->request, p->buffer);
if (deprecated_apis)
json_add_tok(s, "rpc_command", p->request, p->buffer);
#endif

json_for_each_obj(i, tok, p->request) {
Expand Down

0 comments on commit 81ad2a5

Please sign in to comment.