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

Function config_plugin

lightningd/bitcoind.c:47–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static void config_plugin(struct plugin *plugin)
48{
49 struct jsonrpc_request *req;
50 void *ret;
51
52 req = jsonrpc_request_start(plugin, "init", NULL, plugin->log,
53 NULL, plugin_config_cb, plugin);
54 plugin_populate_init_request(plugin, req);
55 jsonrpc_request_end(req);
56 plugin_request_send(plugin, req);
57
58 tal_add_destructor(plugin, bitcoin_destructor);
59
60 ret = io_loop_with_timers(plugin->plugins->ld);
61 log_debug(plugin->plugins->ld->log, "io_loop_with_timers: %s", __func__);
62 assert(ret == plugin);
63}
64
65static void wait_plugin(struct bitcoind *bitcoind, const char *method,
66 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