Fix a bug that can cause servers to stick as 'syncing' for too long.

Add a sensible path to get to omFULL state when consensus is initiated by peer action.
This commit is contained in:
JoelKatz
2013-09-30 12:25:44 -07:00
parent 097b6f8e33
commit b2c46db006

View File

@@ -1423,6 +1423,8 @@ bool NetworkOPsImp::haveConsensusObject ()
if (!ledgerChange)
{
m_journal.info << "Beginning consensus due to peer action";
if ( ((mMode == omCONNECTED) || (mMode == omTRACKING)) && (getPreviousProposers() >= m_ledgerMaster.getMinValidations()) )
setMode (omFULL);
beginConsensus (networkClosed, m_ledgerMaster.getCurrentLedger ());
}
}