-
Couldn't load subscription status.
- Fork 1.6k
Retire fix1623 amendment #5928
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
base: develop
Are you sure you want to change the base?
Retire fix1623 amendment #5928
Conversation
Signed-off-by: Pratik Mankawde <[email protected]>
| return false; | ||
|
|
||
| TxType const tt{serializedTx->getTxnType()}; | ||
| // Transaction type should be ttPAYMENT, ttACCOUNT_DELETE or ttCHECK_CASH |
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5928 +/- ##
=========================================
- Coverage 79.5% 78.5% -0.9%
=========================================
Files 817 817
Lines 72198 69001 -3197
Branches 8293 8269 -24
=========================================
- Hits 57389 54194 -3195
+ Misses 14809 14807 -2
🚀 New features to boost your workflow:
|
| bool | ||
| canHaveDeliveredAmountHelp( | ||
| GetFix1623Enabled const& getFix1623Enabled, | ||
| std::shared_ptr<STTx const> const& serializedTx, | ||
| TxMeta const& transactionMeta) | ||
| { | ||
| if (!serializedTx) | ||
| return false; | ||
|
|
||
| TxType const tt{serializedTx->getTxnType()}; | ||
| // Transaction type should be ttPAYMENT, ttACCOUNT_DELETE or ttCHECK_CASH | ||
| // and if the transaction failed nothing could have been delivered. | ||
| if ((tt == ttPAYMENT || tt == ttCHECK_CASH || tt == ttACCOUNT_DELETE) && | ||
| transactionMeta.getResultTER() == tesSUCCESS) | ||
| { | ||
| TxType const tt{serializedTx->getTxnType()}; | ||
| if (tt != ttPAYMENT && tt != ttCHECK_CASH && tt != ttACCOUNT_DELETE) | ||
| return false; | ||
|
|
||
| if (tt == ttCHECK_CASH && !getFix1623Enabled()) | ||
| return false; | ||
| return true; | ||
| } | ||
|
|
||
| // if the transaction failed nothing could have been delivered. | ||
| if (transactionMeta.getResultTER() != tesSUCCESS) | ||
| return false; | ||
|
|
||
| return true; | ||
| return false; | ||
| } |
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.
you don't need this function anymore, move its functionality into canHaveDeliveredAmount
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.
Done.
src/test/app/Check_test.cpp
Outdated
| testDeliveredAmountForCheckCashTnx(FeatureBitset features) | ||
| { | ||
| testcase("Fix1623 enable"); | ||
| testcase("DeliveredAmount For CheckCash Tnx"); |
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: did you mean Txn?
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.
Yeah, typo. Fixing.
Signed-off-by: Pratik Mankawde <[email protected]>
Signed-off-by: Pratik Mankawde <[email protected]>
High Level Overview of Change
This change retires the
fix1623amendment.Context of Change
Amendments activated for more than 2 years can be retired.
https://xrpl.org/resources/known-amendments#fix1623
Type of Change
.gitignore, formatting, dropping support for older tooling)