mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix limit calculation.
This commit is contained in:
@@ -1861,7 +1861,7 @@ NetworkOPsImp::getTxsAccount (const RippleAddress& account, int32 minLedger, int
|
||||
uint32 numberOfResults, queryLimit;
|
||||
if (limit <= 0)
|
||||
numberOfResults = NONBINARY_PAGE_LENGTH;
|
||||
else if (bAdmin && (limit > NONBINARY_PAGE_LENGTH))
|
||||
else if (!bAdmin && (limit > NONBINARY_PAGE_LENGTH))
|
||||
numberOfResults = NONBINARY_PAGE_LENGTH;
|
||||
else
|
||||
numberOfResults = limit;
|
||||
@@ -1969,7 +1969,7 @@ NetworkOPsImp::getTxsAccountB (const RippleAddress& account, int32 minLedger, in
|
||||
uint32 numberOfResults, queryLimit;
|
||||
if (limit <= 0)
|
||||
numberOfResults = BINARY_PAGE_LENGTH;
|
||||
else if (bAdmin && (limit > BINARY_PAGE_LENGTH))
|
||||
else if (!bAdmin && (limit > BINARY_PAGE_LENGTH))
|
||||
numberOfResults = BINARY_PAGE_LENGTH;
|
||||
else
|
||||
numberOfResults = limit;
|
||||
|
||||
Reference in New Issue
Block a user