MCPcopy Create free account
hub / github.com/ElementsProject/elements / HaveTx

Method HaveTx

src/txorphanage.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool TxOrphanage::HaveTx(const GenTxid& gtxid) const
155{
156 LOCK(g_cs_orphans);
157 if (gtxid.IsWtxid()) {
158 return m_wtxid_to_orphan_it.count(gtxid.GetHash());
159 } else {
160 return m_orphans.count(gtxid.GetHash());
161 }
162}
163
164std::pair<CTransactionRef, NodeId> TxOrphanage::GetTx(const uint256& txid) const
165{

Callers 1

AlreadyHaveTxMethod · 0.80

Calls 3

IsWtxidMethod · 0.80
countMethod · 0.80
GetHashMethod · 0.45

Tested by

no test coverage detected