mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix book_offers limit parameter (RIPD-295)
Conflicts: src/ripple/module/app/misc/NetworkOPs.cpp
This commit is contained in:
committed by
Vinnie Falco
parent
373ce72984
commit
63f099f2f6
@@ -2974,12 +2974,12 @@ void NetworkOPsImp::getBookPage (
|
||||
|
||||
unsigned int iLeft = iLimit;
|
||||
|
||||
if ((iLeft == 0) || (iLeft > 300))
|
||||
if (iLeft == 0 || iLeft > 300)
|
||||
iLeft = 300;
|
||||
|
||||
std::uint32_t uTransferRate = lesActive.rippleTransferRate (book.out.account);
|
||||
|
||||
while (! bDone && --iLeft >= 0)
|
||||
while (! bDone && iLeft-- > 0)
|
||||
{
|
||||
if (bDirectAdvance)
|
||||
{
|
||||
@@ -3162,12 +3162,12 @@ void NetworkOPsImp::getBookPage (
|
||||
|
||||
unsigned int iLeft = iLimit;
|
||||
|
||||
if ((iLeft == 0) || (iLeft > 300))
|
||||
if (iLeft == 0 || iLeft > 300)
|
||||
iLeft = 300;
|
||||
|
||||
auto uTransferRate = lesActive.rippleTransferRate (book.out.account);
|
||||
|
||||
while (--iLeft >= 0 && obIterator.nextOffer ())
|
||||
while (iLeft-- > 0 && obIterator.nextOffer ())
|
||||
{
|
||||
|
||||
SLE::pointer sleOffer = obIterator.getCurrentOffer();
|
||||
|
||||
Reference in New Issue
Block a user