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

@@ -201,6 +201,8 @@ private:
// We do it this way in case we want to add exponential decay later
int now = UptimeTimer::getInstance ().getElapsedSeconds ();
boost::mutex::scoped_lock sl (mLock);
canonicalize (source, now);
source.mBalance += credits;