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

Function new_bitcoind

lightningd/bitcoind.c:866–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866struct bitcoind *new_bitcoind(const tal_t *ctx,
867 struct lightningd *ld,
868 struct logger *log)
869{
870 struct bitcoind *bitcoind = tal(ctx, struct bitcoind);
871
872 strmap_init(&bitcoind->pluginsmap);
873 bitcoind->ld = ld;
874 bitcoind->log = log;
875 list_head_init(&bitcoind->pending_getfilteredblock);
876 tal_add_destructor(bitcoind, destroy_bitcoind);
877 bitcoind->synced = false;
878
879 return bitcoind;
880}

Callers 1

new_topologyFunction · 0.70

Calls 1

list_head_initFunction · 0.85

Tested by

no test coverage detected