From 9a4b9aa69ffc7d5535ea20938e08b4cdaa19bec9 Mon Sep 17 00:00:00 2001 From: David Schwartz Date: Wed, 7 May 2014 13:50:40 -0700 Subject: [PATCH] Remove redundant checkAccept call --- src/ripple_app/ledger/LedgerMaster.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ripple_app/ledger/LedgerMaster.cpp b/src/ripple_app/ledger/LedgerMaster.cpp index 359150695..9e04fffaf 100644 --- a/src/ripple_app/ledger/LedgerMaster.cpp +++ b/src/ripple_app/ledger/LedgerMaster.cpp @@ -241,7 +241,6 @@ public: else { mLedgerHistory.builtLedger (newLCL); - checkAccept (newLCL); } } @@ -770,6 +769,10 @@ public: // Because we just built a ledger, we are no longer building one setBuildingLedger (0); + // No need to process validations in standalone mode + if (getConfig().RUN_STANDALONE) + return; + if (ledger->getLedgerSeq() <= mValidLedgerSeq) { WriteLog (lsINFO, LedgerConsensus)