Skip to content
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

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

daira
Copy link
Contributor

@daira daira commented Jun 19, 2024

No description provided.

Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.15%. Comparing base (4b2a942) to head (f0cf405).

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.
📢 Have feedback on the report? Share it here.

@@ -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);
Copy link
Contributor

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)?

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same response.

Copy link
Contributor

@str4d str4d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK f0cf405

@str4d str4d merged commit de35221 into zcash:main Jun 19, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants