Handle a missing ledger node discovered during pathfinding.

This commit is contained in:
JoelKatz
2013-11-14 11:20:16 -08:00
parent 9322233b37
commit 48cb707bb6

View File

@@ -959,8 +959,16 @@ void LedgerMaster::updatePaths (Job& job)
mPathFindNewRequest = false;
}
// VFALCO TODO Fix this global variable
PathRequest::updateAll (lastLedger, newOnly, hasNew, job.getCancelCallback ());
try
{
// VFALCO TODO Fix this global variable
PathRequest::updateAll (lastLedger, newOnly, hasNew, job.getCancelCallback ());
}
catch (SHAMapMissingNode&)
{
WriteLog (lsINFO, LedgerMaster) << "Missing node detected during pathfinding";
getApp().getInboundLedgers().findCreate(lastLedger->getHash (), lastLedger->getLedgerSeq (), false);
}
}
}