| 815 | } |
| 816 | |
| 817 | static const char *init(struct command *init_cmd, const char *buffer UNUSED, |
| 818 | const jsmntok_t *config UNUSED) |
| 819 | { |
| 820 | wait_and_check_bitcoind(init_cmd->plugin); |
| 821 | |
| 822 | /* Usually we fake up fees in regtest */ |
| 823 | if (streq(chainparams->network_name, "regtest")) |
| 824 | bitcoind->fake_fees = !bitcoind->dev_no_fake_fees; |
| 825 | else |
| 826 | bitcoind->fake_fees = false; |
| 827 | |
| 828 | plugin_set_memleak_handler(init_cmd->plugin, memleak_mark_bitcoind); |
| 829 | plugin_log(init_cmd->plugin, LOG_INFORM, |
| 830 | "bitcoin-cli initialized and connected to bitcoind."); |
| 831 | |
| 832 | return NULL; |
| 833 | } |
| 834 | |
| 835 | static const struct plugin_command commands[] = { |
| 836 | { |
nothing calls this directly
no test coverage detected