mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Fixes.
This commit is contained in:
@@ -1166,7 +1166,7 @@ void LedgerConsensus::applyTransactions(SHAMap::ref set, Ledger::ref applyLedger
|
||||
int changes;
|
||||
bool certainRetry = true;
|
||||
|
||||
for (int pass = 0; pass < 8; ++pass)
|
||||
for (int pass = 0; pass < 12; ++pass)
|
||||
{
|
||||
cLog(lsDEBUG) << "Pass: " << pass << " Txns: " << failedTransactions.size()
|
||||
<< (certainRetry ? " retriable" : " final");
|
||||
@@ -1205,7 +1205,7 @@ void LedgerConsensus::applyTransactions(SHAMap::ref set, Ledger::ref applyLedger
|
||||
return;
|
||||
|
||||
// Stop retriable passes
|
||||
if ((!changes) || (pass >= 4))
|
||||
if ((!changes) || (pass >= 8))
|
||||
certainRetry = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,11 +112,7 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn, Transa
|
||||
|
||||
cLog(lsINFO) << "applyTransaction: terResult=" << strToken << " : " << terResult << " : " << strHuman;
|
||||
|
||||
if (terResult == tesSUCCESS)
|
||||
didApply = true;
|
||||
else if (isTepSuccess(terResult) && isSetBit(params, tapRETRY))
|
||||
didApply = true;
|
||||
else if (isTecClaim(terResult) && !isSetBit(params, tapRETRY))
|
||||
if (isTecClaim(terResult) && !isSetBit(params, tapRETRY))
|
||||
{ // only claim the transaction fee
|
||||
cLog(lsINFO) << "Reprocessing to only claim fee";
|
||||
mNodes.clear();
|
||||
@@ -155,6 +151,8 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn, Transa
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ((terResult == tesSUCCESS) || (isTesSuccess(terResult) && !isSetBit(params, tapRETRY)))
|
||||
didApply = true;
|
||||
else
|
||||
cLog(lsINFO) << "Not applying transaction";
|
||||
|
||||
|
||||
@@ -126,7 +126,7 @@ enum TER // aka TransactionEngineResult
|
||||
#define isTemMalformed(x) ((x) >= temMALFORMED && (x) < tefFAILURE)
|
||||
#define isTefFailure(x) ((x) >= tefFAILURE && (x) < terRETRY)
|
||||
#define isTerRetry(x) ((x) >= terRETRY && (x) < tesSUCCESS)
|
||||
#define isTepSuccess(x) ((x) >= tesSUCCESS)
|
||||
#define isTesSuccess(x) ((x) >= tesSUCCESS)
|
||||
#define isTecClaim(x) ((x) >= tecCLAIM)
|
||||
|
||||
bool transResultInfo(TER terCode, std::string& strToken, std::string& strHuman);
|
||||
|
||||
Reference in New Issue
Block a user