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