| 849 | }; |
| 850 | |
| 851 | static 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 | |
| 871 | int main(int argc, char *argv[]) |
| 872 | { |