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

Function bitcoind_check_commands

lightningd/bitcoind.c:76–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void 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. */
96static void NORETURN

Callers 1

setup_topologyFunction · 0.85

Calls 3

wait_pluginFunction · 0.85
find_plugin_for_commandFunction · 0.70
fatalFunction · 0.70

Tested by

no test coverage detected