| 736 | } |
| 737 | |
| 738 | struct bitcoind *new_bitcoind(const tal_t *ctx, |
| 739 | struct lightningd *ld, |
| 740 | struct log *log) |
| 741 | { |
| 742 | struct bitcoind *bitcoind = tal(ctx, struct bitcoind); |
| 743 | |
| 744 | strmap_init(&bitcoind->pluginsmap); |
| 745 | bitcoind->ld = ld; |
| 746 | bitcoind->log = log; |
| 747 | list_head_init(&bitcoind->pending_getfilteredblock); |
| 748 | tal_add_destructor(bitcoind, destroy_bitcoind); |
| 749 | bitcoind->synced = false; |
| 750 | |
| 751 | return bitcoind; |
| 752 | } |
no test coverage detected