Cleanups.

This commit is contained in:
JoelKatz
2012-12-23 17:52:34 -08:00
parent 2c535940ac
commit 9689f94f5a
2 changed files with 3 additions and 1 deletions

View File

@@ -1104,7 +1104,7 @@ void LedgerConsensus::applyTransaction(TransactionEngine& engine, SerializedTran
assert(!ledger->hasTransaction(txn->getTransactionID()));
failedTransactions.push_back(txn);
}
else if (isTepSuccess(result)) // FIXME: Need to do partial success
else if (didApply) // FIXME: Need to do partial success
{
cLog(lsTRACE) << " success";
assert(ledger->hasTransaction(txn->getTransactionID()));

View File

@@ -118,6 +118,7 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn, Transa
didApply = true;
else if (isTecClaim(terResult) && !isSetBit(params, tapRETRY))
{ // only claim the transaction fee
cLog(lsINFO) << "Reprocessing to only claim fee";
mNodes.clear();
SLE::pointer txnAcct = entryCache(ltACCOUNT_ROOT, Ledger::getAccountRootIndex(txn.getSourceAccount()));
@@ -152,6 +153,7 @@ TER TransactionEngine::applyTransaction(const SerializedTransaction& txn, Transa
}
}
}
else cLog(lsINFO) << "Not applying transaction";
if (didApply)
{