Fix the "peer action" transition from syncing to full

This commit is contained in:
JoelKatz
2014-03-11 05:15:56 -07:00
committed by Nik Bougalis
parent 2b5142ee4d
commit 7aa1222310

View File

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