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

Function new_bitcoind

plugins/bcli.c:858–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856};
857
858static struct bitcoind *new_bitcoind(const tal_t *ctx)
859{
860 bitcoind = tal(ctx, struct bitcoind);
861
862 bitcoind->cli = NULL;
863 bitcoind->datadir = NULL;
864 bitcoind->retry_timeout = 60;
865 bitcoind->rpcuser = NULL;
866 bitcoind->rpcpass = NULL;
867 bitcoind->rpcconnect = NULL;
868 bitcoind->rpcport = NULL;
869 /* Do not exceed retry_timeout value to avoid a bitcoind hang,
870 although normal rpcclienttimeout default value is 900. */
871 bitcoind->rpcclienttimeout = 60;
872 bitcoind->dev_no_fake_fees = false;
873 bitcoind->dev_ignore_ibd = false;
874
875 return bitcoind;
876}
877
878int main(int argc, char *argv[])
879{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected