-
Notifications
You must be signed in to change notification settings - Fork 289
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
chore: update more default parameters #2417
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.
tested quickly locally, but noticed that we accidently lost our ability to change the default consensus params
fixed here celestiaorg/cosmos-sdk#345
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.
No blocking feedback. I think we can update the specs after this PR merges or in this PR.
On second thought, I think we should update the specs params.md file and the actual param in the same PR b/c I think there are a few inconsistencies and it isn't clear what the desired value for each param is. |
|
alrighty, I've updated both the specs and the default values here to the values that were discussed synchronously! this PR is ready for review |
| consensus.evidence.MaxAgeDuration | 1814400000000000 (21 days) | The maximum age of evidence before it is considered invalid in nanoseconds. This value should be identical to the unbonding period. | True | | ||
| consensus.evidence.MaxBytes | 1MiB | Maximum size in bytes used by evidence in a given block. | True | | ||
| consensus.validator.PubKeyTypes | Ed25519 | The type of public key used by validators. | False | | ||
| consensus.Version.AppVersion | 1 | Determines protocol rules used for a given height. Incremented by the application upon an upgrade. | False | | ||
| distribution.communitytax | 2.0% | Percentage of the inflation sent to the community pool. | True | | ||
| distribution.CommunityTax | 2.0% | Percentage of the inflation sent to the community pool. | 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.
👍
Co-authored-by: Rootul P <rootulp@gmail.com>
Co-authored-by: Rootul P <rootulp@gmail.com>
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.
🚢
Codecov Report
@@ Coverage Diff @@
## main #2417 +/- ##
==========================================
- Coverage 20.61% 20.59% -0.03%
==========================================
Files 131 131
Lines 15270 15301 +31
==========================================
+ Hits 3148 3151 +3
- Misses 11820 11847 +27
- Partials 302 303 +1
|
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.
LGTM
Just be aware that #2492 modifies the format that we represent the percentages in so it should be merged after this
## Overview minor update to the defaults to match #2416. ofc, these are not consensus breaking as they're just changes to the defaults. This saves us from having to manually change this for mainnet or mocha ## Checklist - [x] New and updated code has appropriate documentation - [x] New and updated code has new and/or updated testing - [x] Required CI checks are passing - [x] Visual proof for any user facing features like CLI or documentation updates - [ ] Linked issues closed with keywords --------- Co-authored-by: Rootul P <rootulp@gmail.com> (cherry picked from commit 9fa9fbf) # Conflicts: # app/default_overrides.go
This is an automatic backport of pull request #2417 done by [Mergify](https://mergify.com). Cherry-pick of 9fa9fbf has failed: ``` On branch mergify/bp/v1.x/pr-2417 Your branch is up to date with 'origin/v1.x'. You are currently cherry-picking commit 9fa9fbf. (fix conflicts and run "git cherry-pick --continue") (use "git cherry-pick --skip" to skip this patch) (use "git cherry-pick --abort" to cancel the cherry-pick operation) Changes to be committed: modified: app/app.go modified: app/default_overrides_test.go modified: pkg/appconsts/consensus_consts.go modified: specs/src/specs/params.md Unmerged paths: (use "git add <file>..." to mark resolution) both modified: app/default_overrides.go ``` To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally --- <details> <summary>Mergify commands and options</summary> <br /> More conditions and actions can be found in the [documentation](https://docs.mergify.com/). You can also trigger Mergify actions by commenting on this pull request: - `@Mergifyio refresh` will re-evaluate the rules - `@Mergifyio rebase` will rebase this PR on its base branch - `@Mergifyio update` will merge the base branch into this PR - `@Mergifyio backport <destination>` will backport this PR on `<destination>` branch Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can: - look at your merge queues - generate the Mergify configuration with the config editor. Finally, you can contact us on https://mergify.com </details> --------- Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com> Co-authored-by: evan-forbes <evan.samuel.forbes@gmail.com>
Overview
minor update to the defaults to match #2416. ofc, these are not consensus breaking as they're just changes to the defaults. This saves us from having to manually change this for mainnet or mocha
Closes #2480 #2476
Checklist