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

Function json_inspect

plugins/bkpr/bookkeeper.c:717–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715}
716
717static struct command_result *json_inspect(struct command *cmd,
718 const char *buf,
719 const jsmntok_t *params)
720{
721 char *acct_name;
722
723 /* Only available for channel accounts? */
724 if (!param(cmd, buf, params,
725 p_req("account", param_string, cast_const2(const char **, &acct_name)),
726 NULL))
727 return command_param_failed();
728
729 return refresh_moves(cmd, do_inspect, acct_name);
730}
731
732static void json_add_events(struct json_stream *res,
733 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