From 79b83bf0efeeb6277d2611e5bf5b68aad6ca8254 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Wed, 27 Mar 2013 14:48:22 -0700 Subject: [PATCH] Minor cleanup. --- src/cpp/ripple/NetworkOPs.cpp | 6 +++--- src/cpp/ripple/NetworkOPs.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpp/ripple/NetworkOPs.cpp b/src/cpp/ripple/NetworkOPs.cpp index e655fe1f0a..3a9f5fd2b7 100644 --- a/src/cpp/ripple/NetworkOPs.cpp +++ b/src/cpp/ripple/NetworkOPs.cpp @@ -1091,13 +1091,13 @@ std::string boost::str(boost::format("SELECT %s FROM " "AccountTransactions INNER JOIN Transactions ON Transactions.TransID = AccountTransactions.TransID " "WHERE Account = '%s' %s %s " - "ORDER BY AccountTransactions.LedgerSeq %sSC, AccountTransactions.TransID %sSC LIMIT %u, %u;") + "ORDER BY AccountTransactions.LedgerSeq %s, AccountTransactions.TransID %s LIMIT %u, %u;") % selection % account.humanAccountID() % maxClause % minClause - % (descending ? "DE" : "A") - % (descending ? "DE" : "A") + % (descending ? "DESC" : "ASC") + % (descending ? "DESC" : "ASC") % boost::lexical_cast(offset) % boost::lexical_cast(numberOfResults) ); diff --git a/src/cpp/ripple/NetworkOPs.h b/src/cpp/ripple/NetworkOPs.h index a3b7809369..ce4d2a43ec 100644 --- a/src/cpp/ripple/NetworkOPs.h +++ b/src/cpp/ripple/NetworkOPs.h @@ -306,7 +306,7 @@ public: std::vector getLedgerAffectedAccounts(uint32 ledgerSeq); std::vector getLedgerTransactions(uint32 ledgerSeq); - uint32 NetworkOPs::countAccountTxs(const RippleAddress& account, int32 minLedger, int32 maxLedger, uint32 offset); + uint32 countAccountTxs(const RippleAddress& account, int32 minLedger, int32 maxLedger, uint32 offset); // // Monitoring: publisher side //