| 103 | } |
| 104 | |
| 105 | size_t get_tx_depth(const struct chain_topology *topo, |
| 106 | const struct bitcoin_txid *txid) |
| 107 | { |
| 108 | u32 blockheight = wallet_transaction_height(topo->ld->wallet, txid); |
| 109 | |
| 110 | if (blockheight == 0) |
| 111 | return 0; |
| 112 | return topo->tip->height - blockheight + 1; |
| 113 | } |
| 114 | |
| 115 | struct tx_rebroadcast { |
| 116 | /* otx destructor sets this to NULL if it's been freed */ |
no test coverage detected