Propogate a view change during consensus to the NetworkOPs code.

This commit is contained in:
JoelKatz
2012-08-30 10:04:58 -07:00
parent c8d3de7b7d
commit e5af7072bc
4 changed files with 10 additions and 1 deletions

View File

@@ -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;