-
Notifications
You must be signed in to change notification settings - Fork 297
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!: prevent modifications on governance unmodifiable params #2919
Changes from 2 commits
958d74f
f966d2f
d8758b1
d4ea38b
9c2d8fc
634ab86
574392a
dbd315a
610678d
db5b4fb
c874633
c8cb845
5dd452c
3f964c6
f953792
39fede8
00a5bb4
0ee81b0
3738a99
f3bc57e
5958cb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -734,14 +734,22 @@ func (app *App) setPostHanders() { | |
// governance. | ||
func (*App) BlockedParams() [][2]string { | ||
return [][2]string{ | ||
// MaxSquareSize | ||
{blobmoduletypes.ModuleName, string(blobmoduletypes.KeyGovMaxSquareSize)}, | ||
// bank.SendEnabled | ||
{banktypes.ModuleName, string(banktypes.KeySendEnabled)}, | ||
// staking.UnbondingTime | ||
{stakingtypes.ModuleName, string(stakingtypes.KeyUnbondingTime)}, | ||
// staking.BondDenom | ||
{stakingtypes.ModuleName, string(stakingtypes.KeyBondDenom)}, | ||
// MaxBlockBytes and consensus.block.TimeIotaMs | ||
{baseapp.Paramspace, string(baseapp.ParamStoreKeyBlockParams)}, | ||
// consensus.validator.PubKeyTypes | ||
{baseapp.Paramspace, string(baseapp.ParamStoreKeyValidatorParams)}, | ||
// consensus.Version.AppVersion | ||
{baseapp.Paramspace, string(baseapp.ParamStoreKeyVersionParams)}, | ||
// staking.BondDenom | ||
{stakingtypes.ModuleName, string(stakingtypes.KeyBondDenom)}, | ||
// staking.MaxValidators | ||
{stakingtypes.ModuleName, string(stakingtypes.KeyMaxValidators)}, | ||
// staking.UnbondingTime | ||
{stakingtypes.ModuleName, string(stakingtypes.KeyUnbondingTime)}, | ||
Comment on lines
+741
to
+748
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [blocking] this is a breaking change so if it is included in this PR then the PR title needs a IMO we shouldn't add this to the blocked list yet. We should create a GH issue with the list of params that are governance modifiable even though the specs claim they shouldn't be. We should get team alignment on what to do for those params. Then we may update this list or update the specs accordingly. cc: @evan-forbes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah any consens breaking change needs a CIP @fahimahmedx, this is consensus breaking since nodes running this won't change a param, where nodes that are not will change the param There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the CIP doesn't have to be super in depth, since the change is pretty small, but we do still need to explain the benefits of adding or removing any params |
||
} | ||
fahimahmedx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
|
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.
[blocking] this adds more params to the list of blocked params which is potentially something we need to do so that there isn't a divergence between what is stated in params.md and what is actually modifiable. However, it's not clear if these need to be added without appropriate test coverage.
IMO we should tackle this in a few steps: