-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add raw params querier #591
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.
utACK
Fix conflicts before merge. With each PR now containing a changelog entry we're unfortunately gonna have a lot of these conflicts in CHANGELOG.md. |
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.
utACK, see my other comment.
To avoid this, the merging author/reviewer should update the changelog right before merging. |
* add raw-params cmd * add querier test * update changelog
* add raw-params cmd * add querier test * update changelog
Add a querier and cli method to retrieve raw param
[]byte
values.This makes it easier to compare current param values with governance proposals and verify there are no mistakes. Should be useful if we need to create proposals quickly in emergency scenarios.
Ideally this would live in the sdk params module, but we don't have access, so I put it in the committee module as it has access to the params keeper.
Could add a rest endpoint, but I couldn't think of a use case, so left it just as a cli cmd.