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

Function get_tx_depth

lightningd/chaintopology.c:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105size_t get_tx_depth(const struct chain_topology *topo,
106 const struct bitcoin_txid *txid)
107{
108 u32 blockheight = wallet_transaction_height(topo->ld->wallet, txid);
109
110 if (blockheight == 0)
111 return 0;
112 return topo->tip->height - blockheight + 1;
113}
114
115struct tx_rebroadcast {
116 /* otx destructor sets this to NULL if it's been freed */

Callers 1

watch_topology_changedFunction · 0.85

Calls 1

Tested by

no test coverage detected