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

Save sim params and export app state to file #4731

Merged
merged 16 commits into from
Jul 19, 2019

Conversation

fedekunze
Copy link
Collaborator

@fedekunze fedekunze commented Jul 17, 2019

Closes #4566

cc: @npinto

  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.

  • Wrote tests

  • Updated relevant documentation (docs/)

  • Added a relevant changelog entry: clog add [section] [stanza] [message]

  • rereviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@codecov
Copy link

codecov bot commented Jul 18, 2019

Codecov Report

Merging #4731 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4731      +/-   ##
==========================================
- Coverage   53.92%   53.91%   -0.02%     
==========================================
  Files         273      273              
  Lines       17367    17367              
==========================================
- Hits         9366     9364       -2     
- Misses       7317     7319       +2     
  Partials      684      684

@fedekunze
Copy link
Collaborator Author

I need to do some cleanup still. Moving back to WIP

@fedekunze fedekunze removed the R4R label Jul 18, 2019
@fedekunze fedekunze removed the WIP label Jul 18, 2019
simapp/sim_test.go Outdated Show resolved Hide resolved
simapp/sim_test.go Outdated Show resolved Hide resolved
simapp/sim_test.go Outdated Show resolved Hide resolved
@@ -48,11 +54,13 @@ func init() {
// helper function for populating input for SimulateFromSeed
func getSimulateFromSeedInput(tb testing.TB, w io.Writer, app *SimApp) (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sighh...this function is becoming overwhelmingly verbose and hard to grok.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree... I'd like to do some refactors later on the simulator and this is one of the things that'd be cleaned up

simapp/sim_test.go Show resolved Hide resolved
simapp/sim_test.go Outdated Show resolved Hide resolved
simapp/sim_test.go Outdated Show resolved Hide resolved
fedekunze and others added 2 commits July 19, 2019 15:19
Co-Authored-By: Alexander Bezobchuk <[email protected]>
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

simapp/sim_test.go Outdated Show resolved Hide resolved
simapp/sim_test.go Outdated Show resolved Hide resolved
simapp/sim_test.go Outdated Show resolved Hide resolved
simapp/sim_test.go Outdated Show resolved Hide resolved
simapp/sim_test.go Outdated Show resolved Hide resolved
Copy link

@mircea-c mircea-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alexanderbez alexanderbez merged commit 8af2230 into master Jul 19, 2019
@alexanderbez alexanderbez deleted the fedekunze/4566-save-sim-params branch July 19, 2019 16:59
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simulation: Save params to file after execution.
4 participants