-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add and use a function for mandatory checkpoint #2314
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.
Apologies, the ticket was mentioning only #1846 so i missed those changes. Will fix. |
When you do the fix, can you also fix the clippy warnings as well? |
Sure, i think i missed that because since some time there are a lot of clippy warnings in the networking code and other unrelated code. I know is unrelated here but do we have a ticket for that ? |
I also renamed a lot of acceptance tests (01a3438) that were syncing up to canopy in favour of syncing up to the mandatory checkpoint. I hope I didn't go too far. |
There aren't any clippy warnings in Zebra's CI on the current We run clippy on:
Is your Rust install up to date? Sometimes warnings get fixed or removed from clippy. |
This is great, feel free to update function names or docs, but they're not strictly required for this change. |
In regards to clippy, it must be something local (https://gist.github.com/oxarbitrage/8d741c1231335e97c50a06fc9b94ca65). Will research more. |
Your PR branch is up to date with our What version of rustc are you using? |
Nevermind, i was in rust 1.51. Thanks. |
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.
This looks good, we just need to update some feature names in the GitHub workflows as well.
test_sync_to_mandatory_checkpoint_mainnet = [] | ||
test_sync_to_mandatory_checkpoint_testnet = [] | ||
test_sync_past_mandatory_checkpoint_mainnet = [] | ||
test_sync_past_mandatory_checkpoint_testnet = [] |
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.
This change is ok, but it also needs an update to the GitHub workflows:
https://github.com/ZcashFoundation/zebra/blob/main/.github/workflows/regenerate-stateful-test-disks.yml#L68
https://github.com/ZcashFoundation/zebra/blob/main/.github/workflows/regenerate-stateful-test-disks.yml#L69
https://github.com/ZcashFoundation/zebra/blob/main/.github/workflows/test.yml#L72
If you're using fastmod
, it skips hidden files and directories like .github
by default.
You can use fastmod --hidden
to change them as well, but you'll need fastmod
version 0.4.2.
Co-authored-by: teor <teor@riseup.net>
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.
Looks good, let's merge
This is a bugfix on PR #2314, which changed the name of the test function in the code, but didn't change the CI workflow.
This is a bugfix on PR #2314, which changed the name of the test function in the code, but didn't change the CI workflow.
Motivation
We want to refactor the mandatory checkpoint code into a function. If merged this will close #2305
Solution
Add a function into
Network
implementation. Use it.Review
Anyone can review, is a minor cleanup change.
Reviewer Checklist