| 74 | } |
| 75 | |
| 76 | void bitcoind_check_commands(struct bitcoind *bitcoind) |
| 77 | { |
| 78 | size_t i; |
| 79 | struct plugin *p; |
| 80 | |
| 81 | for (i = 0; i < ARRAY_SIZE(methods); i++) { |
| 82 | p = find_plugin_for_command(bitcoind->ld, methods[i]); |
| 83 | if (p == NULL) { |
| 84 | /* For testing .. */ |
| 85 | log_debug(bitcoind->ld->log, "Missing a Bitcoin plugin" |
| 86 | " command"); |
| 87 | fatal("Could not access the plugin for %s, is a " |
| 88 | "Bitcoin plugin (by default plugins/bcli) " |
| 89 | "registered ?", methods[i]); |
| 90 | } |
| 91 | wait_plugin(bitcoind, methods[i], p); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | /* Our Bitcoin backend plugin gave us a bad response. We can't recover. */ |
| 96 | static void NORETURN |
no test coverage detected