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))
|
if(!tx || newLedger->addTransaction(tx))
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
TxnDiff.erase(++it);
|
std::map<uint256, std::pair<Transaction::pointer, Transaction::pointer> >::iterator it2=it;
|
||||||
|
++it;
|
||||||
|
TxnDiff.erase(it2);
|
||||||
}
|
}
|
||||||
else ++it;
|
else ++it;
|
||||||
}
|
}
|
||||||
@@ -492,7 +494,9 @@ Ledger::pointer Ledger::switchPreviousLedger(Ledger::pointer oldPrevious, Ledger
|
|||||||
if(newLedger->addTransaction(it->second))
|
if(newLedger->addTransaction(it->second))
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
txnMap.erase(++it);
|
std::map<uint256, Transaction::pointer>::iterator it2=it;
|
||||||
|
++it;
|
||||||
|
txnMap.erase(it2);
|
||||||
}
|
}
|
||||||
else ++it;
|
else ++it;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user