From 7cbe8572a3ad98d9a9c58f5efa4b7ad080320cfb Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 26 Sep 2013 11:49:18 -0700 Subject: [PATCH] Don't abort on a path that's dry because we entered with no funds. --- src/ripple_app/paths/RippleCalc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ripple_app/paths/RippleCalc.cpp b/src/ripple_app/paths/RippleCalc.cpp index 5ca7144af..19f67502e 100644 --- a/src/ripple_app/paths/RippleCalc.cpp +++ b/src/ripple_app/paths/RippleCalc.cpp @@ -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;