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

Function get_tx_depth

lightningd/chaintopology.c:112–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112size_t get_tx_depth(const struct chain_topology *topo,
113 const struct bitcoin_txid *txid)
114{
115 u32 blockheight = wallet_transaction_height(topo->ld->wallet, txid);
116
117 if (blockheight == 0)
118 return 0;
119 return topo->tip->height - blockheight + 1;
120}
121
122struct txs_to_broadcast {
123 /* We just sent txs[cursor] */

Callers 1

watch_topology_changedFunction · 0.85

Calls 1

Tested by

no test coverage detected