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

Function bitcoind_failure

plugins/bcli.c:736–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736static void bitcoind_failure(struct plugin *p, const char *error_message)
737{
738 const char **cmd = gather_args(bitcoind, NULL, "echo", NULL);
739 plugin_err(p, "\n%s\n\n"
740 "Make sure you have bitcoind running and that bitcoin-cli"
741 " is able to connect to bitcoind.\n\n"
742 "You can verify that your Bitcoin Core installation is"
743 " ready for use by running:\n\n"
744 " $ %s 'hello world'\n", error_message,
745 args_string(cmd, cmd, NULL));
746}
747
748/* Do some sanity checks on bitcoind based on the output of `getnetworkinfo`. */
749static void parse_getnetworkinfo_result(struct plugin *p, const char *buf)

Callers 1

wait_and_check_bitcoindFunction · 0.85

Calls 3

args_stringFunction · 0.85
gather_argsFunction · 0.70
plugin_errFunction · 0.70

Tested by

no test coverage detected