mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
We can't adjust the ledger coin total when we are processing
transactions non-finally.
This commit is contained in:
@@ -520,7 +520,10 @@ TransactionEngineResult TransactionEngine::applyTransaction(const SerializedTran
|
||||
|
||||
Serializer s;
|
||||
txn.add(s);
|
||||
mLedger->addTransaction(txID, s, saPaid);
|
||||
if (!mLedger->addTransaction(txID, s))
|
||||
assert(false);
|
||||
if ((params & tepUPDATE_TOTAL) != tepNONE)
|
||||
mLedger->destroyCoins(saPaid.getNValue());
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
@@ -60,6 +60,7 @@ enum TransactionEngineParams
|
||||
tepNONE = 0,
|
||||
tepNO_CHECK_SIGN = 1, // Signature already checked
|
||||
tepNO_CHECK_FEE = 2, // It was voted into a ledger anyway
|
||||
tepUPDATE_TOTAL = 4, // Update the total coins
|
||||
};
|
||||
|
||||
enum TransactionAccountAction
|
||||
|
||||
Reference in New Issue
Block a user