| 90 | } |
| 91 | |
| 92 | u32 find_blockheight(const struct bkpr *bkpr, |
| 93 | const struct bitcoin_txid *txid) |
| 94 | { |
| 95 | const struct blockheight_entry *e; |
| 96 | |
| 97 | e = blockheight_htable_get(bkpr->blockheights->map, txid); |
| 98 | return e ? e->height : 0; |
| 99 | } |
| 100 | |
| 101 | struct blockheights *init_blockheights(const tal_t *ctx, |
| 102 | struct command *init_cmd) |