Don't try to calculate close time offsets if a ledger closed due to being idle.

This commit is contained in:
JoelKatz
2012-08-08 01:35:44 -07:00
parent 9fc4f469b8
commit 3a4762c609

View File

@@ -937,7 +937,8 @@ void LedgerConsensus::accept(SHAMap::pointer set)
mState = lcsACCEPTED;
sl.unlock();
{
if (mValidating && mOurPosition->getCurrentHash().isNonZero())
{ // see how close our close time is to other node's close time reports
Log(lsINFO) << "We closed at " << boost::lexical_cast<std::string>(mCloseTime);
uint64 closeTotal = mCloseTime;
int closeCount = 1;