Pathfinding fixes:

* Don't consider global freeze if not enforcing
 * Log if a covering path fails to cover
This commit is contained in:
David Schwartz
2014-08-06 10:14:32 -07:00
committed by Vinnie Falco
parent 88a6f2931e
commit a122e176d7
2 changed files with 8 additions and 2 deletions

View File

@@ -467,7 +467,12 @@ Json::Value PathRequest::doUpdate (RippleLineCache::ref cache, bool fast)
spsPaths.addPath(extraPath);
rc.pathStateList_.clear ();
resultCode = rc.rippleCalculate ();
m_journal.debug
if (resultCode != tesSUCCESS)
m_journal.warning
<< iIdentifier << " Failed with covering path "
<< transHuman (resultCode);
else
m_journal.debug
<< iIdentifier << " Extra path element gives "
<< transHuman (resultCode);
}

View File

@@ -505,7 +505,8 @@ int Pathfinder::getPathsOut (
int aFlags = sleAccount->getFieldU32(sfFlags);
bool const bAuthRequired = (aFlags & lsfRequireAuth) != 0;
bool const bFrozen = (aFlags & lsfGlobalFreeze) != 0;
bool const bFrozen = ((aFlags & lsfGlobalFreeze) != 0)
&& mLedger->enforceFreeze ();
int count = 0;