From 90935666bd36fe8e513702ec715573947f8d9e11 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sat, 14 Jul 2012 00:27:26 -0700 Subject: [PATCH] Bugfix. --- src/LedgerConsensus.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/LedgerConsensus.cpp b/src/LedgerConsensus.cpp index cb1a55758c..94b957543d 100644 --- a/src/LedgerConsensus.cpp +++ b/src/LedgerConsensus.cpp @@ -363,10 +363,11 @@ int LedgerConsensus::statePreClose() int sinceClose = theApp->getOPs().getNetworkTimeNC() - mPreviousLedger->getCloseTimeNC(); + Log(lsINFO) << "CLC:: pre close"; if (ContinuousLedgerTiming::shouldClose(anyTransactions, mPreviousProposers, proposersClosed, - mPreviousSeconds, sinceClose)) + mPreviousSeconds, sinceClose) >= sinceClose) { // it is time to close the ledger (swap default and wobble ledgers) - Log(lsINFO) << "Closing ledger"; + Log(lsINFO) << "CLC:: closing ledger"; mState = lcsESTABLISH; mConsensusStartTime = boost::posix_time::second_clock::universal_time(); theApp->getMasterLedger().closeTime(); @@ -376,6 +377,7 @@ int LedgerConsensus::statePreClose() assert (initial->getParentHash() == mPreviousLedger->getHash()); takeInitialPosition(initial); } + else Log(lsINFO) << "CLC:: not closing"; return 1; }