-
Notifications
You must be signed in to change notification settings - Fork 111
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
Upgrade ed25519-zebra to version 2 #1811
Conversation
Since this is activated at Canopy height, it would be interesting to check pre and post Canopy transactions, and these are for Sprout only, but specifically the signatures in the transactions, not whole blocks. We should consider a stateful 'sync to Canopy, sync past Canopy' acceptance test, very similar to our Sapling stateful tests, which would be a nice, more finite, full integration test. |
Sounds good, ill see what i can do ;) |
Maybe we should go with the tests vector created by @hdevalence instead of the big sync for this PR: https://github.com/zcash/zcash/blob/master/src/gtest/test_consensus.cpp#L119 What do you think @dconnolly ? |
By discussions in the chat with @dconnolly and @teor2345 :
|
Sounds like #1388. |
The Windows CI failure is #1769 |
02695dc
to
c9c96d7
Compare
We decided to do a manual
|
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.
The changes here are good, we just need to run the full sync tests, then we can merge. I'll update the checklist in the ticket.
c9c96d7
to
23113c3
Compare
I synchronized a mainnet today on top of this PR. It started at 2.08 pm local time and ended 5:04 as can be seen in the network traffic chart: This is 2 hours 56 minutes. I am posting this because there were report of about 2 hours and a half. Unsure if this PR can be the difference or just network/hardware conditions. I will try the testnet and post details. |
I'm not concerned about this variance, it takes me about 4-6 hours locally, probably due to network speed/latency: If we got this change wrong, then we would be rejecting blocks and failing to reach the tip. |
The testnet is getting close to block 700_000 after 3 days. Very slow but it keeps moving. I can report again when it gets into the tip, if everything goes fine i think it will take at least 1 day more. |
Hmm 3 days is a really bad sign, I usually see testnet sync within a few hours. But I also have local testnet zcashd and Zebra nodes. So the slowness it could mean a bunch of different things:
I'm going to put this on my list of things to double-check on testnet. |
I've just started an ephemeral mainnet and testnet sync for this PR, with some local peers for speed. |
Commit ccc5ae3 (merge 40d4b97) synced within 3 hours on testnet, and 5 hours on mainnet. That's pretty typical for me, I'm network-limited, and my local peers are a much larger proportion of testnet. (Also testnet data is much smaller.) There were no verification issues, so I think we're good to merge this. So it looks like your slow testnet sync was a local network issue, or a testnet stability issue. (Which we'll fix with #1222 pretty soon.) You might also find it helps to keep a synced local Zebra or zcashd instance running, and configure your test instance talk to it. (If you have enough RAM and disk for that.) |
Motivation
We need to validate signatures after Canopy NU where ZIP-215 was implemented.
Solution
In this 2 tickets: #1565 and #1667 the conclusion is to just upgrade and validate everything using
ed25519-zebra
version 2.This PR upgrades
ed25519-zebra
, all tests are passing and zebra is syncing.I think some testing will be needed, some ideas could be the followings however not sure if totally required:
Review
Related Issues
Follow Up Work