-
Notifications
You must be signed in to change notification settings - Fork 106
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 initial support for NU5 to zebra #1823
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.
Looks good to me.
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.
Approved with changes and suggestions
Here's what I checked:
- the consensus branch id matches the draft spec
- the external network protocol versions match the draft spec
Here's what I suggested:
- the specific change and ZIP for each
unimplemented!()
- remove
unimplemented!()
where there is no suggested change
Here's what I committed:
- add NU5 to the
protocol::version_consistent
test ae76f99
This test change isn't required until we have a testnet or mainnet activation height for NU5, but we might as well do it now.
Since my suggestions were trivial, I went ahead and committed them. |
@oxarbitrage or @yaahc, can you double-check that:
Let's focus on wildcard matches and other code that the compiler doesn't automatically pick up. |
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.
Thank you for the last changes @teor2345 , looks a lot better.
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.
We need to double-check that each instance of Canopy
in the codebase has a corresponding NU5
.
Let's just make sure 2 of us have checked this.
We don't have an element for The rest looks good in regards to all the instances of |
@oxarbitrage you beat me to it but I just made a commit adding some |
We want to avoid implementing incorrect consensus rules, because:
Zebra should work if some network upgrades don't have an activation height. So we can just add it when it is decided. |
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 great, let's merge!
Motivation
We want to add a
NetworkUpgrade::NU5
network upgrade variant, and a network protocol version forNU5
.Solution
This change updates various enums and constants to include variants for
NU5
.The code in this pull request has:
Review
@teor2345
Related Issues
Closes #1797
Follow Up Work
Need to implement actual
NU5
logic, currently we panic ifNU5
code paths get executed.