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

Function get_json_id

plugins/libplugin.c:169–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169static const char *get_json_id(const tal_t *ctx,
170 struct plugin *plugin,
171 const char *cmd_id,
172 const char *method)
173{
174 if (cmd_id)
175 return tal_fmt(ctx, "%s/%s:%s#%"PRIu64,
176 cmd_id,
177 plugin->id, method,
178 plugin->next_outreq_id++);
179 return tal_fmt(ctx, "%s:%s#%"PRIu64,
180 plugin->id, method,
181 plugin->next_outreq_id++);
182}
183
184static void destroy_out_req(struct out_req *out_req, struct plugin *plugin)
185{

Callers 2

jsonrpc_request_start_Function · 0.85
sync_reqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected