| 856 | }; |
| 857 | |
| 858 | static 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 | |
| 878 | int main(int argc, char *argv[]) |
| 879 | { |