| 152 | } |
| 153 | |
| 154 | bool 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 | |
| 164 | std::pair<CTransactionRef, NodeId> TxOrphanage::GetTx(const uint256& txid) const |
| 165 | { |
no test coverage detected