mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Propogate a view change during consensus to the NetworkOPs code.
This commit is contained in:
@@ -695,6 +695,12 @@ void NetworkOPs::endConsensus(bool correctLCL)
|
||||
mConsensus = boost::shared_ptr<LedgerConsensus>();
|
||||
}
|
||||
|
||||
void NetworkOPs::consensusViewChange()
|
||||
{
|
||||
if ((mMode == omFULL) || (mMode == omTRACKING))
|
||||
setMode(omCONNECTED);
|
||||
}
|
||||
|
||||
void NetworkOPs::setMode(OperatingMode om)
|
||||
{
|
||||
if (mMode == om) return;
|
||||
|
||||
Reference in New Issue
Block a user