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

Function init

plugins/bcli.c:817–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

815}
816
817static 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
835static const struct plugin_command commands[] = {
836 {

Callers

nothing calls this directly

Calls 3

wait_and_check_bitcoindFunction · 0.85
plugin_logFunction · 0.70

Tested by

no test coverage detected