Skip to content
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

Merged
merged 15 commits into from
Sep 14, 2023
Merged

chore: update more default parameters #2417

merged 15 commits into from
Sep 14, 2023

Conversation

evan-forbes
Copy link
Member

@evan-forbes evan-forbes commented Sep 4, 2023

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

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@evan-forbes evan-forbes added gov param item is directly related to a governance modifiable parameter. backport:v1.x PR will be backported automatically to the v1.x branch upon merging labels Sep 4, 2023
@evan-forbes evan-forbes self-assigned this Sep 4, 2023
@celestia-bot celestia-bot requested a review from a team September 4, 2023 19:19
rootulp
rootulp previously approved these changes Sep 4, 2023
app/default_overrides.go Outdated Show resolved Hide resolved
Copy link
Member Author

@evan-forbes evan-forbes left a 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

app/default_overrides.go Outdated Show resolved Hide resolved
liamsi
liamsi previously approved these changes Sep 5, 2023
rootulp
rootulp previously approved these changes Sep 5, 2023
Copy link
Collaborator

@rootulp rootulp left a 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.

pkg/appconsts/consensus_consts.go Outdated Show resolved Hide resolved
app/default_overrides.go Outdated Show resolved Hide resolved
app/default_overrides.go Outdated Show resolved Hide resolved
app/default_overrides.go Show resolved Hide resolved
app/default_overrides.go Show resolved Hide resolved
@celestia-bot celestia-bot requested a review from a team September 6, 2023 02:44
@rootulp
Copy link
Collaborator

rootulp commented Sep 13, 2023

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.

@rootulp rootulp self-requested a review September 13, 2023 14:49
@evan-forbes evan-forbes marked this pull request as draft September 13, 2023 17:44
@evan-forbes evan-forbes dismissed stale reviews from liamsi and rootulp via efd3800 September 13, 2023 18:20
@github-actions
Copy link

github-actions bot commented Sep 13, 2023

PR Preview Action v1.4.4
🚀 Deployed preview to https://celestiaorg.github.io/celestia-app/pr-preview/pr-2417/
on branch gh-pages at 2023-09-13 20:20 UTC

@evan-forbes evan-forbes marked this pull request as ready for review September 13, 2023 18:59
@celestia-bot celestia-bot requested a review from a team September 13, 2023 19:01
@evan-forbes
Copy link
Member Author

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

app/default_overrides.go Outdated Show resolved Hide resolved
app/default_overrides.go Outdated Show resolved Hide resolved
| 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 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

evan-forbes and others added 2 commits September 13, 2023 14:11
Co-authored-by: Rootul P <rootulp@gmail.com>
Co-authored-by: Rootul P <rootulp@gmail.com>
@celestia-bot celestia-bot requested a review from a team September 13, 2023 19:11
rootulp
rootulp previously approved these changes Sep 13, 2023
Copy link
Collaborator

@rootulp rootulp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2023

Codecov Report

Merging #2417 (5f871f7) into main (d17e231) will decrease coverage by 0.03%.
Report is 26 commits behind head on main.
The diff coverage is 26.82%.

@@            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     
Files Changed Coverage Δ
app/app.go 4.52% <ø> (ø)
x/mint/types/constants.go 100.00% <ø> (ø)
x/qgb/client/verify.go 0.00% <0.00%> (ø)
app/default_overrides.go 12.03% <3.57%> (-2.93%) ⬇️
x/mint/abci.go 89.47% <50.00%> (-3.26%) ⬇️
x/mint/types/minter.go 75.55% <100.00%> (+1.74%) ⬆️
x/qgb/types/abi_consts.go 69.23% <100.00%> (ø)

This was linked to issues Sep 13, 2023
@evan-forbes evan-forbes merged commit 9fa9fbf into main Sep 14, 2023
29 checks passed
Copy link
Contributor

@cmwaters cmwaters left a 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

@evan-forbes evan-forbes deleted the evan/update-defaults branch September 14, 2023 09:42
mergify bot pushed a commit that referenced this pull request Sep 14, 2023
## 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
evan-forbes added a commit that referenced this pull request Sep 14, 2023
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:v1.x PR will be backported automatically to the v1.x branch upon merging gov param item is directly related to a governance modifiable parameter.
Projects
None yet
5 participants