From ca47583a3bc22c6d088ed0e1269759219ce553eb Mon Sep 17 00:00:00 2001 From: Scott Schurr Date: Tue, 3 Sep 2019 14:30:50 -0700 Subject: [PATCH] Small bug fixes in BuildLedger.cpp --- src/ripple/app/ledger/impl/BuildLedger.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ripple/app/ledger/impl/BuildLedger.cpp b/src/ripple/app/ledger/impl/BuildLedger.cpp index 7772c449d9..acde44478b 100644 --- a/src/ripple/app/ledger/impl/BuildLedger.cpp +++ b/src/ripple/app/ledger/impl/BuildLedger.cpp @@ -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 "