This keeps the two timing schemes compatible.

This commit is contained in:
JoelKatz
2013-04-15 09:57:10 -07:00
parent 0bc9c0b737
commit 0c1c14f49a

View File

@@ -53,7 +53,7 @@ bool ContinuousLedgerTiming::shouldClose(
return currentMSeconds >= (idleInterval * 1000); // normal idle
}
if (openMSeconds < LEDGER_MIN_CLOSE)
if ((openMSeconds < LEDGER_MIN_CLOSE) && ((proposersClosed + proposersValidated) < (previousProposers / 2 )))
{
cLog(lsDEBUG) << "Must wait minimum time before closing";
return false;