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

Function new_bitcoind

plugins/bcli.c:851–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected