-
Notifications
You must be signed in to change notification settings - Fork 120
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
Create function for post-blossom height adjustments #1311
Comments
The problem i see with this is that the adjustments made post post blossom are not the same in the 2 places we need to do them. There is one adjustment we do in And the other one in The are some differences that i cant see how to abstract: 1- The height for pre blossom is scaled in the halving calculation while the height pre blossom for the founders reward is not modified. |
I would strongly suggest to follow the spec as literally as possible here. It took quite some thinking and review to get it right. |
If the calculations are different, they should use different functions, which should have function docs describing the differences and pointing to the relevant sections of the spec. Since the existing functions are fairly simple, you could add explanations to them. Here are the different places that a blossom adjustment happens: zebra/zebra-consensus/src/block/subsidy/general.rs Lines 64 to 68 in 128643d
Can you match each one with the relevant part of the spec? Are there any other adjustments? |
@oxarbitrage do we still need to deal with this now that we are checkpointing on canopy? |
In my view we should not do the changes proposed here not because we are checkpointing on canopy but iirc just because is clearer to leave it as it is now as it follows the spec more closely. We can always do this if we need/want but i don't think we need an open ticket. Closing. |
Is your feature request related to a problem? Please describe.
#1170 (comment)
Describe the solution you'd like
Create a function that can be used from at least 2 places.
Describe alternatives you've considered
Leave it as it is.
Additional context
#1170
This is not an urgent task.
The text was updated successfully, but these errors were encountered: