fix: Minor RPC fixes - #6730
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR applies small correctness fixes to RPC responses and gRPC error reporting, improving consistency and clarity for API consumers.
Changes:
ping: Omit theipfield for proxied connections when no forwarded-for header is present, and add the missingbreakin theRole::PROXYswitch case.- gRPC
GetLedgerDiff: Correct the NOT_FOUND error message when the desired ledger is not validated. - Add/adjust tests and document the behavior in the API changelog.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/xrpld/rpc/handlers/utility/Ping.cpp | Fixes proxied ping response consistency and prevents switch fallthrough. |
| src/xrpld/rpc/handlers/ledger/LedgerDiff.cpp | Fixes misleading gRPC error message for unvalidated desired ledger. |
| src/test/rpc/Roles_test.cpp | Adds regression coverage ensuring proxied ping omits ip when absent. |
| API-CHANGELOG.md | Documents the ping and gRPC LedgerDiff bugfixes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bthomee
approved these changes
Apr 6, 2026
bthomee
enabled auto-merge
April 6, 2026 22:15
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6730 +/- ##
=========================================
- Coverage 81.5% 81.4% -0.0%
=========================================
Files 1006 1006
Lines 74461 74463 +2
Branches 7582 7557 -25
=========================================
- Hits 60651 60640 -11
- Misses 13810 13823 +13
🚀 New features to boost your workflow:
|
mvadari
added a commit
that referenced
this pull request
Apr 7, 2026
marek-foss-neti
pushed a commit
to marek-foss-neti/rippled
that referenced
this pull request
May 5, 2026
beartec-jpg
pushed a commit
to beartec-jpg/FalconLedger
that referenced
this pull request
Jun 1, 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
ping: Theipfield is no longer returned as an empty string for proxied connections without a forwarded-for header. It is now omitted, consistent with the behavior for identified connections.breakstatement in the proxied connection case block.GetLedgerDiff: Fixed error message that incorrectly said "base ledger not validated" when the desired ledger was not validated.Context of Change
AI review/triage
API Impact
Minor bugfixes, no API format change.