mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
No ripple check takes precedence over destination check.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user