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

Function watch_tx

lightningd/watch.c:171–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171struct txwatch *watch_tx(const tal_t *ctx,
172 struct chain_topology *topo,
173 struct channel *channel,
174 const struct bitcoin_tx *tx,
175 enum watch_result (*cb)(struct lightningd *ld,
176 struct channel *channel,
177 const struct bitcoin_txid *,
178 const struct bitcoin_tx *,
179 unsigned int depth))
180{
181 struct bitcoin_txid txid;
182
183 bitcoin_txid(tx, &txid);
184 /* FIXME: Save populate txwatch->tx here, too! */
185 return watch_txid(ctx, topo, channel, &txid, cb);
186}
187
188struct txowatch *watch_txo(const tal_t *ctx,
189 struct chain_topology *topo,

Callers 1

watch_tx_and_outputsFunction · 0.85

Calls 2

bitcoin_txidClass · 0.70
watch_txidFunction · 0.70

Tested by

no test coverage detected