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

Function new_bitcoind

lightningd/bitcoind.c:738–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736}
737
738struct bitcoind *new_bitcoind(const tal_t *ctx,
739 struct lightningd *ld,
740 struct log *log)
741{
742 struct bitcoind *bitcoind = tal(ctx, struct bitcoind);
743
744 strmap_init(&bitcoind->pluginsmap);
745 bitcoind->ld = ld;
746 bitcoind->log = log;
747 list_head_init(&bitcoind->pending_getfilteredblock);
748 tal_add_destructor(bitcoind, destroy_bitcoind);
749 bitcoind->synced = false;
750
751 return bitcoind;
752}

Callers 1

new_topologyFunction · 0.70

Calls 1

list_head_initFunction · 0.85

Tested by

no test coverage detected