-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 randomized consensus params into simulation #6051
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6051 +/- ##
=======================================
Coverage 54.64% 54.64%
=======================================
Files 425 425
Lines 25815 25815
=======================================
Hits 14106 14106
Misses 10735 10735
Partials 974 974 |
…mos/cosmos-sdk into jonathan/5988-sim-params-consensus-2
Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
@@ -139,6 +139,7 @@ func TestAppImportExport(t *testing.T) { | |||
ctxA := app.NewContext(true, abci.Header{Height: app.LastBlockHeight()}) | |||
ctxB := newApp.NewContext(true, abci.Header{Height: app.LastBlockHeight()}) | |||
newApp.mm.InitGenesis(ctxB, app.Codec(), genesisState) | |||
newApp.StoreConsensusParams(ctxB, consensusParams) |
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.
Instead of having to make this method public (maybe it doesn't matter), perhaps instead we call newApp.InitChain()
with the consensus params?
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.
I tried that on the beginning, but found several issues that was making the boilerplate too bid with the InitChainer. I can follow that but was too much iin my opinion.
I tried other ways too, using options, etc, but this was the less painful.
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.
ACK
* temporal commit * add random consensus params * make format * make random pass * remove comment * revert change * update ub key types * extract Evidence params from state * extract the random parameters from state * clean the code * update imports! * mispelled back * mispelled back * add misspelled command * update changelog * remove useless linter to avoid misspell * remove function * use tendermint constants * update import test * remove debug comment * Update baseapp/baseapp.go Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Continues: #6002
Description
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)