mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Bugfix.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user