fix: Check for empty sfAdditionalBooks array in hybrid offer invariant - #6716
Conversation
mvadari
left a comment
There was a problem hiding this comment.
This change has to be amendment gated.
|
Got it. Shall I go with |
Yes |
| bool badHybridPre_ = false; // pre-fixSecurity3_1_3: missing field/domain or size > 1 | ||
| bool badHybridPost_ = false; // post-fixSecurity3_1_3: also catches size == 0 (size != 1) |
There was a problem hiding this comment.
For ease of later maintenance, maybe badHybridsOld_ and badHybrids_ would be better names.
|
This PR has conflicts, please resolve them in order for the PR to be reviewed. |
|
If only the most recent commit is unsigned, you can run:
If multiple commits are unsigned, you can run:
If you're new to commit signing, there are different ways to set it up: Sign commits with
|
|
All conflicts have been resolved. Assigned reviewers can now start or resume their review. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6716 +/- ##
=========================================
- Coverage 81.6% 81.6% -0.0%
=========================================
Files 1010 1010
Lines 75992 76003 +11
Branches 7601 7607 +6
=========================================
- Hits 62013 62012 -1
- Misses 13979 13991 +12
🚀 New features to boost your workflow:
|
ximinez
left a comment
There was a problem hiding this comment.
@Kassaking7 Based on the feature name, it looks like this PR is intended to be included in the 3.1.3 release. For that to happen, you need to create a second branch based off of ripple/staging-313, and port these changes to it. You can try using cherry-pick, but due to the number of renamed files and other refactoring differences between the two branches, it will be non-trivial. Once you're done, make a PR for that branch, with ripple/staging-313 as the base branch. Use the title fix: Hybrid offer invariant sfAdditionalBooks empty check (#6716) so they can be logically linked together. Ping me once that's done, and I'll merge them both.
|
This PR has conflicts, please resolve them in order for the PR to be reviewed. |
|
All conflicts have been resolved. Assigned reviewers can now start or resume their review. |
My "review" was only to port the code to 3.1.3. Dismissing it as that's now done in #6945.
sfAdditionalBooks array check in hybrid offer invariant
sfAdditionalBooks array check in hybrid offer invariantsfAdditionalBooks array in hybrid offer invariant
Fix for Hybrid offer invariant does not catch empty sfAdditionalBooks array: #6590
High Level Overview of Change
Context of Change
API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)