fix: Change Tuning::bookOffers minimum limit to 1 - #6812
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates RPC tuning to make book_offers’ minimum limit consistent with readLimitField behavior (which rejects limit == 0).
Changes:
- Change
RPC::Tuning::bookOffers.rminfrom0to1to avoid misleading tuning configuration.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6812 +/- ##
=========================================
- Coverage 81.6% 81.5% -0.0%
=========================================
Files 1011 1010 -1
Lines 75979 75982 +3
Branches 7634 7652 +18
=========================================
- Hits 61985 61958 -27
- Misses 13994 14024 +30
🚀 New features to boost your workflow:
|
ximinez
approved these changes
Apr 10, 2026
ximinez
pushed a commit
that referenced
this pull request
Apr 10, 2026
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
ximinez
pushed a commit
that referenced
this pull request
Apr 22, 2026
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
marek-foss-neti
pushed a commit
to marek-foss-neti/rippled
that referenced
this pull request
May 5, 2026
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
beartec-jpg
pushed a commit
to beartec-jpg/FalconLedger
that referenced
this pull request
Jun 1, 2026
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This was referenced Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
High Level Overview of Change
This change updates the
rminofTuning::bookOffersfrom 0 to 1.Context of Change
Although
readLimitFieldnow rejectslimit == 0for all callers,Tuning::bookOffersstill hasrmin = 0. This is inconsistent and makes the tuning misleading.In particular, the limit value for
bookOffersis passed togetBookOffers, and if the limit is 0 the work loop is skipped entirely:From both
getBookOffersanddoBookOffers, there is no other information added to the return, so you'd get an empty JSON result. The correct solution is therefore to changebookOffersminimum to 1, since the value of 0 is rejected anyway as mentioned earlier.