Disable compatible ledger safety if quorum is strict

This commit is contained in:
JoelKatz
2015-09-25 13:22:40 -07:00
committed by Vinnie Falco
parent f9a65e4966
commit e03effd63b
2 changed files with 9 additions and 1 deletions

View File

@@ -1087,8 +1087,9 @@ void NetworkOPsImp::tryStartConsensus ()
// check if the ledger is good enough to go to omFULL
// Note: Do not go to omFULL if we don't have the previous ledger
// check if the ledger is bad enough to go to omCONNECTED -- TODO
auto current = m_ledgerMaster.getCurrentLedger();
if (app_.timeKeeper().now().time_since_epoch().count() <
m_ledgerMaster.getCurrentLedger ()->info().closeTime)
(current->info().parentCloseTime + 2* current->info().closeTimeResolution))
{
setMode (omFULL);
}