No ripple check takes precedence over destination check.

This commit is contained in:
JoelKatz
2013-09-22 21:22:14 -07:00
parent dc61fadc56
commit 7c31a423e9

View File

@@ -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