mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Cosmetic changes.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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<OrderBook::pointer> 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<uint160> 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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user