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

Function init

plugins/pay.c:236–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236static const char *init(struct command *init_cmd,
237 const char *buf UNUSED, const jsmntok_t *config UNUSED)
238{
239 rpc_scan(init_cmd, "getinfo", take(json_out_obj(NULL, NULL, NULL)),
240 "{id:%}", JSON_SCAN(json_to_node_id, &my_id));
241
242 global_hints = notleak_with_children(channel_hint_set_new(init_cmd->plugin));
243
244 plugin_set_memleak_handler(init_cmd->plugin, memleak_mark_payments);
245 return NULL;
246}
247
248static void on_payment_success(struct payment *payment)
249{

Callers

nothing calls this directly

Calls 4

channel_hint_set_newFunction · 0.85
rpc_scanFunction · 0.70
json_out_objFunction · 0.70

Tested by

no test coverage detected