| 835 | } |
| 836 | |
| 837 | static void init_topo(struct bitcoind *bitcoind UNUSED, |
| 838 | struct bitcoin_blkid *blkid UNUSED, |
| 839 | struct bitcoin_block *blk, |
| 840 | struct chain_topology *topo) |
| 841 | { |
| 842 | topo->root = new_block(topo, blk, topo->max_blockheight); |
| 843 | block_map_add(&topo->block_map, topo->root); |
| 844 | topo->tip = topo->root; |
| 845 | topo->prev_tip = topo->tip->blkid; |
| 846 | |
| 847 | /* In case we don't get all the way to updates_complete */ |
| 848 | db_set_intvar(topo->bitcoind->ld->wallet->db, |
| 849 | "last_processed_block", topo->tip->height); |
| 850 | |
| 851 | maybe_completed_init(topo); |
| 852 | } |
| 853 | |
| 854 | u32 get_block_height(const struct chain_topology *topo) |
| 855 | { |
nothing calls this directly
no test coverage detected