* Notify onchaind about the depth change of the watched tx. */
| 168 | * Notify onchaind about the depth change of the watched tx. |
| 169 | */ |
| 170 | static void onchain_tx_depth(struct channel *channel, |
| 171 | const struct bitcoin_txid *txid, |
| 172 | unsigned int depth) |
| 173 | { |
| 174 | u8 *msg; |
| 175 | msg = towire_onchaind_depth(channel, txid, depth); |
| 176 | subd_send_msg(channel->owner, take(msg)); |
| 177 | } |
| 178 | |
| 179 | /** |
| 180 | * Entrypoint for the txwatch callback, calls onchain_tx_depth. |
no test coverage detected