mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Fix crashing bug caused by orphan(s) with duplicate prevout.hash
This commit is contained in:
parent
d6af9856b0
commit
def2fdb4b9
@ -498,6 +498,8 @@ void static EraseOrphanTx(uint256 hash)
|
||||
BOOST_FOREACH(const CTxIn& txin, it->second.vin)
|
||||
{
|
||||
map<uint256, set<uint256> >::iterator itPrev = mapOrphanTransactionsByPrev.find(txin.prevout.hash);
|
||||
if (itPrev == mapOrphanTransactionsByPrev.end())
|
||||
continue;
|
||||
itPrev->second.erase(hash);
|
||||
if (itPrev->second.empty())
|
||||
mapOrphanTransactionsByPrev.erase(itPrev);
|
||||
|
Loading…
Reference in New Issue
Block a user