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

Robert/initgensis profiling #7741

Closed
wants to merge 6 commits into from

Conversation

robert-zaremba
Copy link
Collaborator

@robert-zaremba robert-zaremba commented Oct 30, 2020

Optimizing InitGenezis

Description

  • x/bank InitGenesis: remove k.ValidateBalance
  • chain initializtion: move profiling to the top of the startProcess function
  • add more logs and telemetry stats during the initialization process
  • make x/crisis AssertInvariants optional during InitGenesis

TODO:

  • remove printlines
  • rebase and change the destination branch

closes: #7682


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • 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.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@robert-zaremba robert-zaremba marked this pull request as draft October 30, 2020 13:08
@robert-zaremba robert-zaremba changed the base branch from master to release/v0.40.x October 30, 2020 13:09
simapp/app.go Outdated
@@ -324,7 +324,7 @@ func NewSimApp(
vesting.NewAppModule(app.AccountKeeper, app.BankKeeper),
bank.NewAppModule(appCodec, app.BankKeeper, app.AccountKeeper),
capability.NewAppModule(appCodec, *app.CapabilityKeeper),
crisis.NewAppModule(&app.CrisisKeeper),
crisis.NewAppModule(&app.CrisisKeeper, true),
Copy link
Member

Choose a reason for hiding this comment

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

Ideally we need to be check if crisis invariants pass based on flag passes to start and not a compile time Boolean

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, no problem. I asked about it on the issue page. Here, this is a simapp, not gaia.

@robert-zaremba
Copy link
Collaborator Author

I'm closing this PR in favor of #7764
The latter one targets master and solves conflicts.

This branch can be used if someone will like to play with the release branch.

@alessio alessio deleted the robert/initgensis-profiling branch March 14, 2021 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:genesis relating to chain genesis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gaia 3.0 takes a long time to start on migrated hub3 state
2 participants