mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Don't abort on a path that's dry because we entered with no funds.
This commit is contained in:
@@ -1815,6 +1815,11 @@ TER RippleCalc::calcNodeFwd (const unsigned int uNode, PathState& psCur, const b
|
||||
terResult = calcNodeFwd (uNode + 1, psCur, bMultiQuality);
|
||||
}
|
||||
|
||||
if (tesSUCCESS == terResult && (!psCur.saInPass || !psCur.saOutPass))
|
||||
{
|
||||
terResult = tecPATH_DRY;
|
||||
}
|
||||
|
||||
WriteLog (lsDEBUG, RippleCalc) << boost::str (boost::format ("calcNodeFwd< uNode=%d terResult=%d") % uNode % terResult);
|
||||
|
||||
return terResult;
|
||||
|
||||
Reference in New Issue
Block a user