mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Pathfinding fixes:
* Don't consider global freeze if not enforcing * Log if a covering path fails to cover
This commit is contained in:
committed by
Vinnie Falco
parent
88a6f2931e
commit
a122e176d7
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user