| 139 | } |
| 140 | |
| 141 | void TxOrphanage::AddChildrenToWorkSet(const CTransaction& tx, std::set<uint256>& orphan_work_set) const |
| 142 | { |
| 143 | AssertLockHeld(g_cs_orphans); |
| 144 | for (unsigned int i = 0; i < tx.vout.size(); i++) { |
| 145 | const auto it_by_prev = m_outpoint_to_orphan_it.find(COutPoint(tx.GetHash(), i)); |
| 146 | if (it_by_prev != m_outpoint_to_orphan_it.end()) { |
| 147 | for (const auto& elem : it_by_prev->second) { |
| 148 | orphan_work_set.insert(elem->first); |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | bool TxOrphanage::HaveTx(const GenTxid& gtxid) const |
| 155 | { |