-
Notifications
You must be signed in to change notification settings - Fork 618
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
fix: register consensus params #7220
Conversation
app/upgrades/v22/upgrades.go
Outdated
// Properly register consensus params. In the process, change params as per: | ||
// https://forum.osmosis.zone/t/raise-maximum-gas-to-300m-and-lower-max-bytes-to-5mb/1116 | ||
defaultConsensusParams := tmtypes.DefaultConsensusParams().ToProto() | ||
defaultConsensusParams.Block.MaxBytes = 5000000 | ||
defaultConsensusParams.Block.MaxGas = 300000000 | ||
keepers.ConsensusParamsKeeper.Set(ctx, &defaultConsensusParams) |
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.
Need an ack that we are good with all defaults except for the MaxBytes and MaxGas here
@@ -14,7 +14,7 @@ const ( | |||
// number of blocks it takes to vote for a single validator to vote for a proposal | |||
PropVoteBlocks float32 = 1 | |||
// number of blocks used as a calculation buffer | |||
PropBufferBlocks float32 = 8 | |||
PropBufferBlocks float32 = 30 |
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.
In the previous version of E2E, the block speed pre upgrade was normal, and the block speed post upgrade was accelerated. Now, block speed is accelerated both pre and post upgrade, so I increased the buffer accordingly.
app/upgrades/v22/upgrades.go
Outdated
// https://forum.osmosis.zone/t/raise-maximum-gas-to-300m-and-lower-max-bytes-to-5mb/1116 | ||
defaultConsensusParams := tmtypes.DefaultConsensusParams().ToProto() | ||
defaultConsensusParams.Block.MaxBytes = 5000000 | ||
defaultConsensusParams.Block.MaxGas = 300000000 |
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.
just for context, what's the reason we're only dealing with max byte and gas here + how did we get these numbers?
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.
We utilize all defaults, except for the two block params that the in line comment links to.
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.
Can the code comment paste what mainnet used to have>
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.
Added previous mainnet values in-line comments here cb05474
We should definitely add a changelog for this |
@ValarDragon there is a changelog entry Line 59 in cb05474
|
Sanity checked that we set the baseapp param store as well |
Closes: #XXX
What is the purpose of the change
After upgrade:
Testing and Verifying
Queried for the value pre v22 upgrade on E2E, does not exist.
Queried for the value post v22 upgrade on E2E, exists and is upgraded to the above values.
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)