Fix standalone or non-validating modes.

This commit is contained in:
JoelKatz
2012-11-14 00:33:17 -08:00
parent 0a2beae3ac
commit bd44ae1b2b

View File

@@ -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();