MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_inspect

Function json_inspect

plugins/bkpr/bookkeeper.c:693–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693static struct command_result *json_inspect(struct command *cmd,
694 const char *buf,
695 const jsmntok_t *params)
696{
697 char *acct_name;
698
699 /* Only available for channel accounts? */
700 if (!param(cmd, buf, params,
701 p_req("account", param_string, cast_const2(const char **, &acct_name)),
702 NULL))
703 return command_param_failed();
704
705 return refresh_moves(cmd, do_inspect, acct_name);
706}
707
708static void json_add_events(struct json_stream *res,
709 const struct bkpr *bkpr,

Callers

nothing calls this directly

Calls 2

paramFunction · 0.50
command_param_failedFunction · 0.50

Tested by

no test coverage detected