mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Cleanups.
This commit is contained in:
@@ -285,6 +285,8 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tLog(lsTRACE)
|
||||||
|
{
|
||||||
cLog(lsTRACE) << "findPaths: finish? account: " << (speEnd.mAccountID == mDstAccountID);
|
cLog(lsTRACE) << "findPaths: finish? account: " << (speEnd.mAccountID == mDstAccountID);
|
||||||
cLog(lsTRACE) << "findPaths: finish? currency: " << (speEnd.mCurrencyID == mDstAmount.getCurrency());
|
cLog(lsTRACE) << "findPaths: finish? currency: " << (speEnd.mCurrencyID == mDstAmount.getCurrency());
|
||||||
cLog(lsTRACE) << "findPaths: finish? issuer: "
|
cLog(lsTRACE) << "findPaths: finish? issuer: "
|
||||||
@@ -293,7 +295,8 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax
|
|||||||
<< RippleAddress::createHumanAccountID(mDstAmount.getIssuer())
|
<< RippleAddress::createHumanAccountID(mDstAmount.getIssuer())
|
||||||
<< " / "
|
<< " / "
|
||||||
<< RippleAddress::createHumanAccountID(mDstAccountID);
|
<< RippleAddress::createHumanAccountID(mDstAccountID);
|
||||||
cLog(lsDEBUG) << "findPaths: finish? issuer is desired: " << (speEnd.mIssuerID == mDstAmount.getIssuer());
|
cLog(lsTRACE) << "findPaths: finish? issuer is desired: " << (speEnd.mIssuerID == mDstAmount.getIssuer());
|
||||||
|
}
|
||||||
|
|
||||||
// YYY Allows going through self. Is this wanted?
|
// YYY Allows going through self. Is this wanted?
|
||||||
if (speEnd.mAccountID == mDstAccountID // Tail is destination account.
|
if (speEnd.mAccountID == mDstAccountID // Tail is destination account.
|
||||||
@@ -343,7 +346,7 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax
|
|||||||
{
|
{
|
||||||
// Path is at maximum size. Don't want to add more.
|
// Path is at maximum size. Don't want to add more.
|
||||||
|
|
||||||
cLog(lsDEBUG)
|
cLog(lsTRACE)
|
||||||
<< boost::str(boost::format("findPaths: dropping: path would exceed max steps"));
|
<< boost::str(boost::format("findPaths: dropping: path would exceed max steps"));
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user