mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Small bug fixes in BuildLedger.cpp
This commit is contained in:
committed by
Manoj doshi
parent
f4d6b0e1c4
commit
ca47583a3b
@@ -151,6 +151,9 @@ applyTransactions(
|
||||
<< (certainRetry ? "Pass: " : "Final pass: ") << pass
|
||||
<< " completed (" << changes << " changes)";
|
||||
|
||||
// Accumulate changes.
|
||||
count += changes;
|
||||
|
||||
// A non-retry pass made no changes
|
||||
if (!changes && !certainRetry)
|
||||
break;
|
||||
@@ -193,7 +196,7 @@ buildLedger(
|
||||
auto const applied = applyTransactions(app, built, txns,
|
||||
failedTxns, accum, j);
|
||||
|
||||
if (txns.size() || txns.size())
|
||||
if (!txns.empty() || !failedTxns.empty())
|
||||
JLOG(j.debug())
|
||||
<< "Applied " << applied << " transactions; "
|
||||
<< failedTxns.size() << " failed and "
|
||||
|
||||
Reference in New Issue
Block a user