Cosmetic changes.

This commit is contained in:
Arthur Britto
2013-03-05 17:27:30 -08:00
parent a27c6301fb
commit cffb069f1b
3 changed files with 5 additions and 3 deletions

View File

@@ -1050,7 +1050,7 @@ STAmount STAmount::setRate(uint64 rate)
// --> saTakerFunds: Limit for saOfferGets : How much can pay including fees. // --> saTakerFunds: Limit for saOfferGets : How much can pay including fees.
// --> saOfferPays: Request : this should be reduced as the offer is fullfilled. // --> saOfferPays: Request : this should be reduced as the offer is fullfilled.
// --> saOfferGets: 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. // --> saTakerGets: Limit for taker to get.
// <-- saTakerPaid: Actual // <-- saTakerPaid: Actual
// <-- saTakerGot: Actual // <-- saTakerGot: Actual

View File

@@ -280,7 +280,7 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax
} }
else else
{ {
cLog(lsTRACE) << "findPaths: empty path: XRP->XRP"; cLog(lsWARNING) << "findPaths: empty path: XRP->XRP";
} }
continue; continue;
@@ -405,6 +405,7 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax
if (sleEnd) if (sleEnd)
{ {
// On a non-XRP account: // On a non-XRP account:
// True, the cursor requires the next node to be authorized.
bool bRequireAuth = isSetBit(sleEnd->getFieldU32(sfFlags), lsfRequireAuth); bool bRequireAuth = isSetBit(sleEnd->getFieldU32(sfFlags), lsfRequireAuth);
BOOST_FOREACH(AccountItem::ref item, rippleLines.getItems()) 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. // Every book that wants the source currency.
std::vector<OrderBook::pointer> books; std::vector<OrderBook::pointer> books;
// XXX Flip argument order to norm.
theApp->getOrderBookDB().getBooks(speEnd.mIssuerID, speEnd.mCurrencyID, books); theApp->getOrderBookDB().getBooks(speEnd.mIssuerID, speEnd.mCurrencyID, books);
BOOST_FOREACH(OrderBook::ref book, books) BOOST_FOREACH(OrderBook::ref book, books)
@@ -701,7 +703,6 @@ boost::unordered_set<uint160> usAccountSourceCurrencies(const RippleAddress& raA
|| (rspEntry->getLimitPeer() // Peer extends credit. || (rspEntry->getLimitPeer() // Peer extends credit.
&& *saBalance.negate() < rspEntry->getLimitPeer())) // Credit left. && *saBalance.negate() < rspEntry->getLimitPeer())) // Credit left.
{ {
// Path has no credit left. Ignore it.
usCurrencies.insert(saBalance.getCurrency()); usCurrencies.insert(saBalance.getCurrency());
} }
} }

View File

@@ -47,6 +47,7 @@ public:
const uint160& getAccountID() const { return mViewLowest ? mLowID : mHighID; } const uint160& getAccountID() const { return mViewLowest ? mLowID : mHighID; }
const uint160& getAccountIDPeer() 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 getAuth() const { return isSetBit(mFlags, mViewLowest ? lsfLowAuth : lsfHighAuth); }
bool getAuthPeer() const { return isSetBit(mFlags, !mViewLowest ? lsfLowAuth : lsfHighAuth); } bool getAuthPeer() const { return isSetBit(mFlags, !mViewLowest ? lsfLowAuth : lsfHighAuth); }