Cleanups.

This commit is contained in:
JoelKatz
2013-03-04 18:12:33 -08:00
parent d1169ee86d
commit b8fdb3b659

View File

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