fix: Disallow MPTClearRequireAuth if is set - #6712
Conversation
mvadari
left a comment
There was a problem hiding this comment.
Changing the asserts to returning tefINTERNAL requires an amendment.
|
For the sake of the less initiated: What happens now when the assert fires? How does the client percieve the current behaviour? I guess I half-expected this to be so far into "undefined" that tefINTERNAL would be the first version the client was aware of. |
Asserts only fire in debug builds. In release builds (which is what people run in production), it does nothing. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6712 +/- ##
=========================================
+ Coverage 81.6% 81.8% +0.2%
=========================================
Files 1010 1010
Lines 75992 76089 +97
Branches 7605 7529 -76
=========================================
+ Hits 62002 62230 +228
+ Misses 13990 13859 -131
🚀 New features to boost your workflow:
|
@mvadari Just added |
|
@yinyiqian1 if you're using cc @bthomee on whether this is/should be slated for 3.1.3 |
I think we can squeeze this one in, since it benefits from leveraging the new fix amendment. I don't think it will be too much effort to cherry-pick it into the staging branch after merging into develop. |
@mvadari I just created a separate PR to merge into staging 3.1.3: #6940. It cherry-picks the commits from current 6712 and resolves conflicts. |
ximinez
left a comment
There was a problem hiding this comment.
This review can be dismissed and the PR merged after the questions below are answered. (To be fair, the first question is more of an opinion with a question tacked on to the end.)
|
Removing the "Ready to merge label" until Ed's questions are answered |
As promised, my questions have been answered, so I'm dismissing this review.
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
RequireAuthflag for MPT.XRPL_ASSERTshould not replaced by returning tefINTERNAL to avoid node crash when new features added in the future.High Level Overview of Change
Context of Change
API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)