mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix paging in tx_account
This commit is contained in:
@@ -1397,8 +1397,6 @@ std::vector<NetworkOPs::txnMetaLedgerType> NetworkOPs::getAccountTxsB (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uint32
|
uint32
|
||||||
NetworkOPs::countAccountTxs (const RippleAddress& account, int32 minLedger, int32 maxLedger)
|
NetworkOPs::countAccountTxs (const RippleAddress& account, int32 minLedger, int32 maxLedger)
|
||||||
{
|
{
|
||||||
@@ -1461,8 +1459,8 @@ NetworkOPs::getTxsAccount (const RippleAddress& account, int32 minLedger, int32
|
|||||||
"ORDER BY AccountTransactions.LedgerSeq %s, AccountTransactions.TxnSeq %s, AccountTransactions.TransID %s "
|
"ORDER BY AccountTransactions.LedgerSeq %s, AccountTransactions.TxnSeq %s, AccountTransactions.TransID %s "
|
||||||
"LIMIT %u;")
|
"LIMIT %u;")
|
||||||
% account.humanAccountID()
|
% account.humanAccountID()
|
||||||
% minLedger
|
% ((forward && (findLedger != 0)) ? findLedger : minLedger)
|
||||||
% maxLedger
|
% ((!forward && (findLedger != 0)) ? findLedger: maxLedger)
|
||||||
% (forward ? "ASC" : "DESC")
|
% (forward ? "ASC" : "DESC")
|
||||||
% (forward ? "ASC" : "DESC")
|
% (forward ? "ASC" : "DESC")
|
||||||
% (forward ? "ASC" : "DESC")
|
% (forward ? "ASC" : "DESC")
|
||||||
@@ -1570,8 +1568,8 @@ NetworkOPs::getTxsAccountB (const RippleAddress& account, int32 minLedger, int32
|
|||||||
"ORDER BY AccountTransactions.LedgerSeq %s, AccountTransactions.TxnSeq %s, AccountTransactions.TransID %s "
|
"ORDER BY AccountTransactions.LedgerSeq %s, AccountTransactions.TxnSeq %s, AccountTransactions.TransID %s "
|
||||||
"LIMIT %u;")
|
"LIMIT %u;")
|
||||||
% account.humanAccountID()
|
% account.humanAccountID()
|
||||||
% minLedger
|
% ((forward && (findLedger != 0)) ? findLedger : minLedger)
|
||||||
% maxLedger
|
% ((!forward && (findLedger != 0)) ? findLedger: maxLedger)
|
||||||
% (forward ? "ASC" : "DESC")
|
% (forward ? "ASC" : "DESC")
|
||||||
% (forward ? "ASC" : "DESC")
|
% (forward ? "ASC" : "DESC")
|
||||||
% (forward ? "ASC" : "DESC")
|
% (forward ? "ASC" : "DESC")
|
||||||
|
|||||||
Reference in New Issue
Block a user