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

Clarify SetNewParams() in x/stake #2149

Closed
mossid opened this issue Aug 25, 2018 · 2 comments
Closed

Clarify SetNewParams() in x/stake #2149

mossid opened this issue Aug 25, 2018 · 2 comments

Comments

@mossid
Copy link
Contributor

mossid commented Aug 25, 2018

SetNewParams() in x/stake sets all parameter from params struct. This will be used only for initializing all parameters in testing. We should define SetXXX()s for individual parameters and use it for production code.

Also see: #1772 conversation.

@ValarDragon
Copy link
Contributor

If we have code like this for tests, lets make it visually obvious. e.g. instead of
SetNewParams, instead do TestingSetNewParams or SetNewParamsForTesting.

@rigelrozanski
Copy link
Contributor

The params should probably be moved to the global params store anyways - not sure that it will matter after then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants