| 989 | }; |
| 990 | |
| 991 | static 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 | |
| 1017 | int main(int argc, char *argv[]) |
| 1018 | { |
no test coverage detected