From 7186d45f4534d3c9f2af567e76d390e32a9733cd Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 6 Aug 2012 04:22:35 -0700 Subject: [PATCH] Some extra debug to try to find the close time consensus buglet. --- src/LedgerConsensus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LedgerConsensus.cpp b/src/LedgerConsensus.cpp index 72cb43ebc9..b1513a418e 100644 --- a/src/LedgerConsensus.cpp +++ b/src/LedgerConsensus.cpp @@ -541,10 +541,12 @@ void LedgerConsensus::updateOurPositions() Log(lsINFO) << "CCTime: " << it->first << " has " << it->second << " out of " << thresh; if (it->second > thresh) { + Log(lsINFO) << "Close time consensus reached: " << closeTime; mHaveCloseTimeConsensus = true; closeTime = it->first; } } + if (closeTime != (mOurPosition->getCloseTime() - (mOurPosition->getCloseTime() % mCloseResolution))) { ourPosition = mComplete[mOurPosition->getCurrentHash()]->snapShot(true); @@ -558,6 +560,7 @@ void LedgerConsensus::updateOurPositions() if (mProposing) propose(addedTx, removedTx); mapComplete(newHash, ourPosition, false); Log(lsINFO) << "We change our position to " << newHash.GetHex(); + Log(lsINFO) << " Close time " << closeTime; } }