mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove mOrigNodes.
This commit is contained in:
@@ -813,10 +813,7 @@ SLE::pointer TransactionEngine::entryCache(LedgerEntryType letType, const uint25
|
||||
{
|
||||
sleEntry = mLedger->getSLE(uIndex);
|
||||
if (sleEntry)
|
||||
{
|
||||
mNodes.entryCache(sleEntry);
|
||||
mOrigNodes.entryCache(sleEntry); // So the metadata code can compare to the original
|
||||
}
|
||||
}
|
||||
else if (action == taaDELETE)
|
||||
assert(false);
|
||||
@@ -893,13 +890,6 @@ void TransactionEngine::txnWrite()
|
||||
}
|
||||
}
|
||||
|
||||
// This is for when a transaction fails from the issuer's point of view and the current changes need to be cleared so other
|
||||
// actions can be applied to the ledger.
|
||||
void TransactionEngine::entryReset()
|
||||
{
|
||||
mNodes.setTo(mOrigNodes);
|
||||
}
|
||||
|
||||
TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTransaction& txn,
|
||||
TransactionEngineParams params)
|
||||
{
|
||||
@@ -1220,7 +1210,6 @@ TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTran
|
||||
if (terSUCCESS == terResult)
|
||||
{
|
||||
entryModify(mTxnAccount);
|
||||
mOrigNodes = mNodes.duplicate();
|
||||
|
||||
switch (txn.getTxnType())
|
||||
{
|
||||
@@ -1305,7 +1294,6 @@ TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTran
|
||||
|
||||
mTxnAccount = SLE::pointer();
|
||||
mNodes.clear();
|
||||
mOrigNodes.clear();
|
||||
mUnfunded.clear();
|
||||
|
||||
return terResult;
|
||||
|
||||
Reference in New Issue
Block a user