* Notify onchaind about the depth change of the watched tx. */
| 141 | * Notify onchaind about the depth change of the watched tx. |
| 142 | */ |
| 143 | static void onchain_tx_depth(struct channel *channel, |
| 144 | const struct bitcoin_txid *txid, |
| 145 | unsigned int depth) |
| 146 | { |
| 147 | u8 *msg; |
| 148 | msg = towire_onchaind_depth(channel, txid, depth); |
| 149 | subd_send_msg(channel->owner, take(msg)); |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * Entrypoint for the txwatch callback, calls onchain_tx_depth. |
no test coverage detected