| 38 | } |
| 39 | |
| 40 | static 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 | |
| 59 | static void wait_plugin(struct bitcoind *bitcoind, const char *method, |
| 60 | struct plugin *p) |
no test coverage detected