-
Notifications
You must be signed in to change notification settings - Fork 492
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 CPFP + Cancel Regression Tests #11575
Conversation
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.
Behavior is the same, numbers are different... I don't know what is higher than what it's worth to speed up this transaction
means in this context... what is the number that is worth it, and how can we calculate it.
Ping @nopara73
It seems like as the percentage is getting closer to 100%, the values are closer to each other. So it might be fine. |
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.
I have concerns about the changes made to the expected results in the test assertions. Modifying the expected outcomes essentially alters the nature of what is being tested. If you are confident that your code implementation is correct, it would be more appropriate to adjust the test setup rather than changing the expected results.
For example, in CancelTests.cs
, the expected value for cancellingTx.FeePercentOfSent
has been changed from 0
to 0.00066m
. Similarly, in ReceiveSpeedupTests.cs
and SelfSpendSpeedupTests.cs
, the exceptions being thrown have been changed. These changes could potentially mask issues in the code being tested.
I believe it's crucial that these tests remain reliable indicators of the code's functionality.
I removed the unnecessary checks a5522db |
Yes, you are right. I found some cases where What I don't understand is why do we check AssertMaxCpfpFee after the transaction is created? There are 3 things in my mind that we can do:
|
Fixes #11557