MCPcopy Create free account
hub / github.com/ElementsProject/lightning / onchain_tx_depth

Function onchain_tx_depth

lightningd/onchain_control.c:170–177  ·  view source on GitHub ↗

* Notify onchaind about the depth change of the watched tx. */

Source from the content-addressed store, hash-verified

168 * Notify onchaind about the depth change of the watched tx.
169 */
170static 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.

Callers 2

onchain_tx_watchedFunction · 0.85
replay_blockFunction · 0.85

Calls 1

subd_send_msgFunction · 0.70

Tested by

no test coverage detected