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;
|
||||
|
||||
Reference in New Issue
Block a user