mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -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 ());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user