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

Function onchain_tx_depth

lightningd/onchain_control.c:143–150  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

141 * Notify onchaind about the depth change of the watched tx.
142 */
143static 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.

Callers 2

onchain_tx_watchedFunction · 0.85
onchaind_replay_channelsFunction · 0.85

Calls 1

subd_send_msgFunction · 0.70

Tested by

no test coverage detected