| 811 | } |
| 812 | |
| 813 | static void bitcoind_failure(struct plugin *p, const char *error_message) |
| 814 | { |
| 815 | const char **cmd = gather_args(bitcoind, "echo", NULL); |
| 816 | plugin_err(p, "\n%s\n\n" |
| 817 | "Make sure you have bitcoind running and that bitcoin-cli" |
| 818 | " is able to connect to bitcoind.\n\n" |
| 819 | "You can verify that your Bitcoin Core installation is" |
| 820 | " ready for use by running:\n\n" |
| 821 | " $ %s 'hello world'\n", error_message, |
| 822 | args_string(cmd, cmd)); |
| 823 | } |
| 824 | |
| 825 | /* Do some sanity checks on bitcoind based on the output of `getnetworkinfo`. */ |
| 826 | static void parse_getnetworkinfo_result(struct plugin *p, const char *buf) |
no test coverage detected