| 45 | } |
| 46 | |
| 47 | static 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 | |
| 65 | static void wait_plugin(struct bitcoind *bitcoind, const char *method, |
| 66 | struct plugin *p) |
no test coverage detected