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

Function new_bitcoind

plugins/bcli.c:991–1015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989};
990
991static struct bitcoind *new_bitcoind(const tal_t *ctx)
992{
993 bitcoind = tal(ctx, struct bitcoind);
994
995 bitcoind->cli = NULL;
996 bitcoind->datadir = NULL;
997 for (size_t i = 0; i < BITCOIND_NUM_PRIO; i++) {
998 bitcoind->num_requests[i] = 0;
999 list_head_init(&bitcoind->pending[i]);
1000 }
1001 list_head_init(&bitcoind->current);
1002 bitcoind->error_count = 0;
1003 bitcoind->retry_timeout = 60;
1004 bitcoind->rpcuser = NULL;
1005 bitcoind->rpcpass = NULL;
1006 bitcoind->rpcconnect = NULL;
1007 bitcoind->rpcport = NULL;
1008 bitcoind->max_fee_multiplier = 10;
1009 bitcoind->commit_fee_percent = 100;
1010#if DEVELOPER
1011 bitcoind->no_fake_fees = false;
1012#endif
1013
1014 return bitcoind;
1015}
1016
1017int main(int argc, char *argv[])
1018{

Callers 1

mainFunction · 0.70

Calls 1

list_head_initFunction · 0.85

Tested by

no test coverage detected