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