diff --git a/src/cpp/ripple/Amount.cpp b/src/cpp/ripple/Amount.cpp index df0fc8f45a..c228fba653 100644 --- a/src/cpp/ripple/Amount.cpp +++ b/src/cpp/ripple/Amount.cpp @@ -1050,7 +1050,7 @@ STAmount STAmount::setRate(uint64 rate) // --> saTakerFunds: Limit for saOfferGets : How much can pay including fees. // --> saOfferPays: Request : this should be reduced as the offer is fullfilled. // --> saOfferGets: Request : this should be reduced as the offer is fullfilled. -// --> saTakerPays: Limit for taker to Pays. +// --> saTakerPays: Limit for taker to pay. // --> saTakerGets: Limit for taker to get. // <-- saTakerPaid: Actual // <-- saTakerGot: Actual diff --git a/src/cpp/ripple/Pathfinder.cpp b/src/cpp/ripple/Pathfinder.cpp index ef14477a57..d08895101f 100644 --- a/src/cpp/ripple/Pathfinder.cpp +++ b/src/cpp/ripple/Pathfinder.cpp @@ -280,7 +280,7 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax } else { - cLog(lsTRACE) << "findPaths: empty path: XRP->XRP"; + cLog(lsWARNING) << "findPaths: empty path: XRP->XRP"; } continue; @@ -405,6 +405,7 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax if (sleEnd) { // On a non-XRP account: + // True, the cursor requires the next node to be authorized. bool bRequireAuth = isSetBit(sleEnd->getFieldU32(sfFlags), lsfRequireAuth); BOOST_FOREACH(AccountItem::ref item, rippleLines.getItems()) @@ -459,6 +460,7 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax // Every book that wants the source currency. std::vector books; + // XXX Flip argument order to norm. theApp->getOrderBookDB().getBooks(speEnd.mIssuerID, speEnd.mCurrencyID, books); BOOST_FOREACH(OrderBook::ref book, books) @@ -701,7 +703,6 @@ boost::unordered_set usAccountSourceCurrencies(const RippleAddress& raA || (rspEntry->getLimitPeer() // Peer extends credit. && *saBalance.negate() < rspEntry->getLimitPeer())) // Credit left. { - // Path has no credit left. Ignore it. usCurrencies.insert(saBalance.getCurrency()); } } diff --git a/src/cpp/ripple/RippleState.h b/src/cpp/ripple/RippleState.h index df8b7fdc56..7c86e5412c 100644 --- a/src/cpp/ripple/RippleState.h +++ b/src/cpp/ripple/RippleState.h @@ -47,6 +47,7 @@ public: const uint160& getAccountID() const { return mViewLowest ? mLowID : mHighID; } const uint160& getAccountIDPeer() const { return !mViewLowest ? mLowID : mHighID; } + // True, Provided auth to peer. bool getAuth() const { return isSetBit(mFlags, mViewLowest ? lsfLowAuth : lsfHighAuth); } bool getAuthPeer() const { return isSetBit(mFlags, !mViewLowest ? lsfLowAuth : lsfHighAuth); }