From bd44ae1b2b8ab02adcbd64a619ef059cb8b4567b Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 14 Nov 2012 00:33:17 -0800 Subject: [PATCH] Fix standalone or non-validating modes. --- src/cpp/ripple/LedgerConsensus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/ripple/LedgerConsensus.cpp b/src/cpp/ripple/LedgerConsensus.cpp index e537abb16..8eeff1571 100644 --- a/src/cpp/ripple/LedgerConsensus.cpp +++ b/src/cpp/ripple/LedgerConsensus.cpp @@ -307,7 +307,7 @@ LedgerConsensus::LedgerConsensus(const uint256& prevLCLHash, Ledger::ref previou void LedgerConsensus::checkOurValidation() { // This only covers some cases - Fix for the case where we can't ever acquire the consensus ledger - if (!mHaveCorrectLCL) + if (!mHaveCorrectLCL || !mValPublic.isValid() || !mValPrivate.isValid()) return; SerializedValidation::pointer lastVal = theApp->getOPs().getLastValidation();