-
Notifications
You must be signed in to change notification settings - Fork 250
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
Update tests in testing/pool.rs to use ZIP 317 fees #1432
Conversation
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1432 +/- ##
==========================================
- Coverage 63.16% 63.15% -0.01%
==========================================
Files 127 127
Lines 14868 14868
==========================================
- Hits 9391 9390 -1
- Misses 5477 5478 +1 ☔ View full report in Codecov by Sentry. |
@@ -921,18 +912,15 @@ pub(crate) fn spend_succeeds_to_t_addr_zero_change<T: ShieldedPoolTester>() { | |||
let dfvk = T::test_account_fvk(&st); | |||
|
|||
// Add funds to the wallet in a single note | |||
let value = NonNegativeAmount::const_from_u64(60000); | |||
let value = NonNegativeAmount::const_from_u64(70000); |
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.
Is this bump necessary for the test to work under ZIP 317, or is it left over from your other PR (that you subsequently undid)?
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.
No, this is necessary because the ZIP 317 fee is higher than 10000 zats. (Actually a value
of 65000 zats would be sufficient, but this is not intended to be testing the zero-change corner case.)
@@ -968,7 +956,7 @@ pub(crate) fn change_note_spends_succeed<T: ShieldedPoolTester>() { | |||
let dfvk = T::test_account_fvk(&st); | |||
|
|||
// Add funds to the wallet in a single note owned by the internal spending key | |||
let value = NonNegativeAmount::const_from_u64(60000); | |||
let value = NonNegativeAmount::const_from_u64(70000); |
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.
Ditto
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.
Same response.
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.
utACK f0cf405
No description provided.