Changeset View
Changeset View
Standalone View
Standalone View
src/txorphanage.cpp
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | for (size_t i = 0; i < tx.vout.size(); i++) { | ||||
mapOrphanTransactionsByPrev.find(COutPoint(tx.GetId(), i)); | mapOrphanTransactionsByPrev.find(COutPoint(tx.GetId(), i)); | ||||
if (it_by_prev != mapOrphanTransactionsByPrev.end()) { | if (it_by_prev != mapOrphanTransactionsByPrev.end()) { | ||||
for (const auto &elem : it_by_prev->second) { | for (const auto &elem : it_by_prev->second) { | ||||
orphan_work_set.insert(elem->first); | orphan_work_set.insert(elem->first); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
bool HaveOrphanTx(const TxId &txid) { | |||||
LOCK(g_cs_orphans); | |||||
return mapOrphanTransactions.count(txid); | |||||
} |