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

Function config_plugin

lightningd/bitcoind.c:40–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40static void config_plugin(struct plugin *plugin)
41{
42 struct jsonrpc_request *req;
43 void *ret;
44
45 req = jsonrpc_request_start(plugin, "init", NULL,
46 plugin->log,
47 NULL, plugin_config_cb, plugin);
48 plugin_populate_init_request(plugin, req);
49 jsonrpc_request_end(req);
50 plugin_request_send(plugin, req);
51
52 tal_add_destructor(plugin, bitcoin_destructor);
53
54 ret = io_loop_with_timers(plugin->plugins->ld);
55 log_debug(plugin->plugins->ld->log, "io_loop_with_timers: %s", __func__);
56 assert(ret == plugin);
57}
58
59static void wait_plugin(struct bitcoind *bitcoind, const char *method,
60 struct plugin *p)

Callers 1

wait_pluginFunction · 0.85

Calls 4

io_loop_with_timersFunction · 0.85
jsonrpc_request_endFunction · 0.70
plugin_request_sendFunction · 0.70

Tested by

no test coverage detected