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

feat: add version params to parameters #9432

Merged
merged 12 commits into from
Jul 8, 2021
Merged

Conversation

tac0turtle
Copy link
Member

@tac0turtle tac0turtle commented Jun 1, 2021

Description

add version paramters to Tendermint consensus params.

closes: #7472

@AmauryM this may need to be incorporated into the upgrade module. I need to read into how upgrades work to figure it out.

@tac0turtle tac0turtle self-assigned this Jun 1, 2021
@codecov
Copy link

codecov bot commented Jun 1, 2021

Codecov Report

Merging #9432 (542d7ae) into master (a3d8b58) will decrease coverage by 0.02%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9432      +/-   ##
==========================================
- Coverage   63.46%   63.43%   -0.03%     
==========================================
  Files         571      571              
  Lines       37524    37524              
==========================================
- Hits        23815    23804      -11     
- Misses      11851    11862      +11     
  Partials     1858     1858              
Impacted Files Coverage Δ
baseapp/baseapp.go 76.89% <ø> (ø)
x/params/module.go 51.85% <ø> (ø)
x/params/types/consensus_params.go 0.00% <0.00%> (ø)
simapp/app.go 83.90% <100.00%> (ø)

@tac0turtle tac0turtle changed the title feature: add version params to parameters feat: add version params to parameters Jun 1, 2021
@tac0turtle tac0turtle requested a review from amaury1093 June 1, 2021 14:59
@tac0turtle tac0turtle marked this pull request as ready for review June 1, 2021 14:59
@tac0turtle tac0turtle requested a review from robert-zaremba June 1, 2021 14:59
@tac0turtle tac0turtle requested a review from anilcse June 3, 2021 05:55
@tac0turtle tac0turtle added S:blocked Status: Blocked T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). T: State Machine Breaking State machine breaking changes (impacts consensus). and removed T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). labels Jun 7, 2021
baseapp/params.go Outdated Show resolved Hide resolved
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

@AmauryM this may need to be incorporated into the upgrade module. I need to read into how upgrades work to figure it out.

Yeah, this needs a migration. An example of migration of param store was done here

Also blocking it until 0.43-RC is out

@amaury1093 amaury1093 added the S: DO NOT MERGE Status: DO NOT MERGE label Jun 17, 2021
@tac0turtle
Copy link
Member Author

Yeah, this needs a migration. An example of migration of param store was done here

How does baseapp params handle migration. I dont see a migration script in there.

@amaury1093 amaury1093 removed the S: DO NOT MERGE Status: DO NOT MERGE label Jun 28, 2021
@amaury1093 amaury1093 removed the S:blocked Status: Blocked label Jun 28, 2021
@tac0turtle tac0turtle requested a review from amaury1093 June 28, 2021 09:43
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

overall lgtm, left a couple of comments re migrations

x/params/legacy/v044/store.go Outdated Show resolved Hide resolved
x/params/legacy/v044/store.go Outdated Show resolved Hide resolved
x/params/module.go Outdated Show resolved Hide resolved
x/params/legacy/v044/store.go Outdated Show resolved Hide resolved
x/params/legacy/v044/store.go Outdated Show resolved Hide resolved
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

suggestion on how to move forward with this PR

baseapp/baseapp.go Outdated Show resolved Hide resolved
@tac0turtle tac0turtle force-pushed the marko/7472_versionparams branch from d3fb6ad to 2d63a91 Compare July 8, 2021 07:19
@tac0turtle tac0turtle added A:automerge Automatically merge PR once all prerequisites pass. and removed T: State Machine Breaking State machine breaking changes (impacts consensus). labels Jul 8, 2021
Copy link
Contributor

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

thanks @marbar3778!

func ConsensusParamsKeyTable() types.KeyTable {
return types.NewKeyTable(
types.NewParamSetPair(
func ConsensusParamsKeyTable() KeyTable {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add an API breaking changelog entry for this guy?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, on it

@mergify mergify bot merged commit 6888de1 into master Jul 8, 2021
@mergify mergify bot deleted the marko/7472_versionparams branch July 8, 2021 08:46
@amaury1093 amaury1093 removed the A:automerge Automatically merge PR once all prerequisites pass. label Jul 8, 2021
@tac0turtle
Copy link
Member Author

will open another PR. the bot moved too fast

larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v                               ✰  Thanks for creating a PR! ✰
v    Before smashing the submit button please review the checkboxes.
v    If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  -->

## Description

add version paramters to Tendermint consensus params. 

closes: cosmos#7472

@AmauryM this may need to be incorporated into the upgrade module. I need to read into how upgrades work to figure it out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VersionParams is missing from ConsensusParams in SDK
4 participants