| 110 | } |
| 111 | |
| 112 | size_t get_tx_depth(const struct chain_topology *topo, |
| 113 | const struct bitcoin_txid *txid) |
| 114 | { |
| 115 | u32 blockheight = wallet_transaction_height(topo->ld->wallet, txid); |
| 116 | |
| 117 | if (blockheight == 0) |
| 118 | return 0; |
| 119 | return topo->tip->height - blockheight + 1; |
| 120 | } |
| 121 | |
| 122 | struct txs_to_broadcast { |
| 123 | /* We just sent txs[cursor] */ |
no test coverage detected