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

Function new_bitcoind

lightningd/bitcoind.c:832–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830}
831
832struct bitcoind *new_bitcoind(const tal_t *ctx,
833 struct lightningd *ld,
834 struct logger *log)
835{
836 struct bitcoind *bitcoind = tal(ctx, struct bitcoind);
837
838 strmap_init(&bitcoind->pluginsmap);
839 bitcoind->ld = ld;
840 bitcoind->log = log;
841 list_head_init(&bitcoind->pending_getfilteredblock);
842 tal_add_destructor(bitcoind, destroy_bitcoind);
843 bitcoind->synced = false;
844
845 return bitcoind;
846}

Callers 1

new_topologyFunction · 0.70

Calls 1

list_head_initFunction · 0.85

Tested by

no test coverage detected