-
Notifications
You must be signed in to change notification settings - Fork 218
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
feat!: implement inflating tail emission #6160
Conversation
Test Results (CI)1 259 tests 1 259 ✅ 11m 53s ⏱️ Results for commit ec1245e. ♻️ This comment has been updated with latest results. |
Test Results (Integration tests) 2 files + 2 11 suites +11 14m 43s ⏱️ + 14m 43s For more details on these failures, see this check. Results for commit ec1245e. ± Comparison against base commit f5860a8. ♻️ This comment has been updated with latest results. |
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 code reads and follows so much easier without the feature flag in here.
@@ -119,7 +119,7 @@ message ConsensusConstants { | |||
uint64 median_timestamp_count = 9; | |||
uint64 emission_initial = 10; | |||
repeated uint64 emission_decay = 11; | |||
uint64 emission_tail = 12; | |||
uint64 emission_tail = 12 [deprecated=true]; |
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.
Nit:
I think we can just delete this, it should default to 0 if you ask for it in a dated proto file.
But I am 99% nothing uses this field
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.
Let's nuke it in a separate PR so that it's easy to revert if you're wrong.
9de36db
to
bf98053
Compare
Adds a feature `tari_feature_mainnet_emission` to allow for tail emission inflation. See #6122 This change necessitates the addition of 2 new consensus constants: `inflation_bips` -- the annual inflation rate of the total supply in basis points (100 bips = 1 percentage point). and `tail_emission_epoch_length`, which controls the tail emission inflation. These replace `tail_emission`. We update the Protobuf definition for `ConsensusConstants` to account for the new fields. Updates tests Adds `as_u128` to `MicroMinotari` since we need to perform a large multiplication when calculating the inflation issuance. Note: Replaces part of #6131
bf98053
to
1e8ca53
Compare
Summary
Adds a feature
tari_feature_mainnet_emission
to allow for tail emissioninflation. See #6122
This change necessitates the addition of 2 new consensus constants:
inflation_bips
-- the annual inflation rate of the total supply.and
tail_emission_epoch_length
, which controls the tail emissioninflation. These replace
tail_emission
.We update the Protobuf definition for
ConsensusConstants
to account forthe new fields.
Note: Replaces part of #6131