This commit is contained in:
JoelKatz
2012-01-25 16:32:13 -08:00
parent 58d81ca937
commit 8a0625a477

View File

@@ -468,7 +468,9 @@ Ledger::pointer Ledger::switchPreviousLedger(Ledger::pointer oldPrevious, Ledger
if(!tx || newLedger->addTransaction(tx))
{
count++;
TxnDiff.erase(++it);
std::map<uint256, std::pair<Transaction::pointer, Transaction::pointer> >::iterator it2=it;
++it;
TxnDiff.erase(it2);
}
else ++it;
}
@@ -492,7 +494,9 @@ Ledger::pointer Ledger::switchPreviousLedger(Ledger::pointer oldPrevious, Ledger
if(newLedger->addTransaction(it->second))
{
count++;
txnMap.erase(++it);
std::map<uint256, Transaction::pointer>::iterator it2=it;
++it;
txnMap.erase(it2);
}
else ++it;
}