-
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(consensus): Add activation_heights
field to NetworkParameters
and implement Parameters
for Network
#8383
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…pdates production code.
…rts` and `transparent::Address`
…orkKind` as zebra_network::Config::network field type, and converts 'Network' to `NetworkKind` before serializing
…l for zcash_primitives::consensus::Network
arya2
added
A-consensus
Area: Consensus rule updates
C-enhancement
Category: This is an improvement
I-usability
Zebra is hard to understand or use
A-network
Area: Network protocol updates or fixes
NU-6
Network Upgrade: NU6 specific tasks
C-testing
Category: These are tests
C-feature
Category: New features
labels
Apr 3, 2024
This was
linked to
issues
Apr 3, 2024
Co-authored-by: Marek <[email protected]>
…red configs can be parsed, adds an intermediate representation of activation heights
…rk where there were conversions
arya2
changed the title
add(chain): Add
add(consensus): Add Apr 12, 2024
activation_heights
field to NetworkParameters
and implement Parameters
for Network
activation_heights
field to NetworkParameters
and implement Parameters
for Network
…emoves an unnecessary test.
arya2
commented
Apr 17, 2024
upbqdn
previously approved these changes
Apr 17, 2024
arya2
commented
Apr 17, 2024
9 tasks
upbqdn
previously approved these changes
Apr 18, 2024
Co-authored-by: Marek <[email protected]>
upbqdn
approved these changes
Apr 18, 2024
@Mergifyio refresh |
✅ Pull request refreshed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-consensus
Area: Consensus rule updates
A-network
Area: Network protocol updates or fixes
C-enhancement
Category: This is an improvement
C-feature
Category: New features
C-testing
Category: These are tests
I-usability
Zebra is hard to understand or use
NU-6
Network Upgrade: NU6 specific tasks
P-Medium ⚡
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
We want to have an
activation_heights
field onNetworkParameters
so that we can use different values onRegtest
and so that it can be configured for custom Testnets.Closes #7970.
Closes #8365.
Closes #7840.
Depends-On: #8368
PR Author Checklist
Check before marking the PR as ready for review:
For significant changes:
If a checkbox isn't relevant to the PR, mark it as done.
Solution
activation_heights
field toNetworkParameters
testnet_parameters
from Zebra's configParameters
forNetwork
to avoid tricky conversions tozcash_primitives::consensus::Network
Testing
stored_configs_parsed_correctly
test to check if new configs are valid more quicklyParameters
impl for zebra-chain'sNetwork
's method outputs match those of theParameters
impl forzcash_primitives::consensus::Network
.Review
Anyone can review.
Reviewer Checklist
Check before approving the PR:
PR blockers can be dealt with in new tickets or PRs.
And check the PR Author checklist is complete.