From d273ac6e76113fc39f7142f9243ca98d0b7f2d39 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 15 Oct 2012 03:04:56 -0700 Subject: [PATCH] Fix a bug that could prevent a close time consensus from being recognized. --- src/LedgerConsensus.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LedgerConsensus.cpp b/src/LedgerConsensus.cpp index e8e9e0685..31e64bffb 100644 --- a/src/LedgerConsensus.cpp +++ b/src/LedgerConsensus.cpp @@ -58,7 +58,6 @@ void TransactionAcquire::trigger(Peer::ref peer, bool timer) } if (!mHaveRoot) { - cLog(lsINFO) << "have no root"; ripple::TMGetLedger tmGL; tmGL.set_ledgerhash(mHash.begin(), mHash.size()); tmGL.set_itype(ripple::liTS_CANDIDATE); @@ -675,7 +674,7 @@ void LedgerConsensus::updateOurPositions() for (std::map::iterator it = closeTimes.begin(), end = closeTimes.end(); it != end; ++it) { cLog(lsINFO) << "CCTime: " << it->first << " has " << it->second << ", " << thresh << " required"; - if (it->second > thresh) + if (it->second >= thresh) { cLog(lsINFO) << "Close time consensus reached: " << it->first; mHaveCloseTimeConsensus = true;