|
|
@ -498,6 +498,8 @@ void static EraseOrphanTx(uint256 hash) |
|
|
|
BOOST_FOREACH(const CTxIn& txin, it->second.vin) |
|
|
|
BOOST_FOREACH(const CTxIn& txin, it->second.vin) |
|
|
|
{ |
|
|
|
{ |
|
|
|
map<uint256, set<uint256> >::iterator itPrev = mapOrphanTransactionsByPrev.find(txin.prevout.hash); |
|
|
|
map<uint256, set<uint256> >::iterator itPrev = mapOrphanTransactionsByPrev.find(txin.prevout.hash); |
|
|
|
|
|
|
|
if (itPrev == mapOrphanTransactionsByPrev.end()) |
|
|
|
|
|
|
|
continue; |
|
|
|
itPrev->second.erase(hash); |
|
|
|
itPrev->second.erase(hash); |
|
|
|
if (itPrev->second.empty()) |
|
|
|
if (itPrev->second.empty()) |
|
|
|
mapOrphanTransactionsByPrev.erase(itPrev); |
|
|
|
mapOrphanTransactionsByPrev.erase(itPrev); |
|
|
|