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

Function init

plugins/bcli.c:810–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810static 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
828static const struct plugin_command commands[] = {
829 {

Callers

nothing calls this directly

Calls 3

wait_and_check_bitcoindFunction · 0.85
plugin_logFunction · 0.70

Tested by

no test coverage detected