Shed load if the ledger publication engine is falling behind.

This commit is contained in:
JoelKatz
2013-07-03 13:20:27 -07:00
parent bc5781e05d
commit d303e7dba8
4 changed files with 28 additions and 0 deletions

View File

@@ -829,6 +829,9 @@ bool serverOkay (std::string& reason)
return false;
}
if (!theApp->getLedgerMaster().isCaughtUp(reason))
return false;
if (theApp->getFeeTrack ().isLoaded ())
{
reason = "Too much load";