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

Method AddChildrenToWorkSet

src/txorphanage.cpp:141–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void 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
154bool TxOrphanage::HaveTx(const GenTxid& gtxid) const
155{

Callers 2

ProcessOrphanTxMethod · 0.80
ProcessMessageMethod · 0.80

Calls 6

findMethod · 0.80
COutPointClass · 0.50
sizeMethod · 0.45
GetHashMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected