-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix failing assert in connect
RPC
#5235
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5235 +/- ##
=======================================
Coverage 78.0% 78.0%
=======================================
Files 789 789
Lines 66954 66953 -1
Branches 8108 8105 -3
=======================================
+ Hits 52218 52224 +6
+ Misses 14736 14729 -7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice !
src/test/rpc/Connect_test.cpp
Outdated
|
||
BEAST_DEFINE_TESTSUITE(Connect, rpc, ripple); | ||
|
||
} // namespace ripple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: It's nice to add an empty line at the end to avoid upsetting github here. I usually recommend changing this setting in your favourite IDE (usually called "Insert Final Newline" or something like that).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@bthomee this is ready to merge whenever you get a chance |
High Level Overview of Change
This PR fixes a failing assert scenario in the
connect
admin RPC.Context of Change
When a node is in standalone mode and someone with admin access tries to submit this command, rippled fails an assert (and crashes in debug builds), regardless of what the other parameters are.
Example crashing command:
Type of Change
API Impact
N/A, fixes something that results in a failed assert before
Before / After
Before, use of the
connect
RPC on a standalone node fails an assert in rippled. Now, it returns an error.Test Plan
Tested locally.