From 7c31a423e9ecd2d0936cbfcdd77007d7e5605d18 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 22 Sep 2013 21:22:14 -0700 Subject: [PATCH] No ripple check takes precedence over destination check. --- src/ripple_app/paths/Pathfinder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ripple_app/paths/Pathfinder.cpp b/src/ripple_app/paths/Pathfinder.cpp index 712370596..182ec8dc2 100644 --- a/src/ripple_app/paths/Pathfinder.cpp +++ b/src/ripple_app/paths/Pathfinder.cpp @@ -598,6 +598,10 @@ void Pathfinder::addLink( { // path has no credit } + else if (!bAllAccounts && rspEntry.getNoRipple()) + { + // Can't leave on this path + } else if (acctID == mDstAccountID) { // destination is always worth trying if (uEndCurrency == mDstAmount.getCurrency()) @@ -613,10 +617,6 @@ void Pathfinder::addLink( candidates.push_back(std::make_pair(100000, acctID)); } } - else if (!bAllAccounts && rspEntry.getNoRipple()) - { - // Can't leave on this path - } else if (acctID == mSrcAccountID) { // going back to the source is bad