mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Don't include a non-XRP order book if we've already seen the issuer's account in the currency.
This commit is contained in:
@@ -683,8 +683,8 @@ void Pathfinder::addLink(
|
||||
else
|
||||
incompletePaths.addPath(newPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
else if (!currentPath.hasSeen(book->getIssuerOut(), book->getCurrencyOut(), book->getIssuerOut()))
|
||||
{ // Don't want the book if we've already seen the issuer
|
||||
// add the order book itself
|
||||
newPath.addElement(STPathElement(STPathElement::typeCurrency | STPathElement::typeIssuer,
|
||||
ACCOUNT_XRP, book->getCurrencyOut(), book->getIssuerOut()));
|
||||
|
||||
Reference in New Issue
Block a user