In consensus process, if we don't have the LCL, only *de*mote to tracking.

Don't promote to tracking.
This commit is contained in:
JoelKatz
2012-10-16 05:05:15 -07:00
parent b6dc333b68
commit 1f58c4326d

View File

@@ -646,8 +646,11 @@ int NetworkOPs::beginConsensus(const uint256& networkClosed, Ledger::pointer clo
Ledger::pointer prevLedger = mLedgerMaster->getLedgerByHash(closingLedger->getParentHash());
if (!prevLedger)
{ // this shouldn't happen unless we jump ledgers
cLog(lsWARNING) << "Don't have LCL, going to tracking";
setMode(omTRACKING);
if (mMode == omFULL)
{
cLog(lsWARNING) << "Don't have LCL, going to tracking";
setMode(omTRACKING);
}
return 3;
}
assert(prevLedger->getHash() == closingLedger->getParentHash());