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

restart failure for the checkState initialization issue #1816

Closed
ElvisYzz opened this issue Jul 25, 2018 · 2 comments
Closed

restart failure for the checkState initialization issue #1816

ElvisYzz opened this issue Jul 25, 2018 · 2 comments
Labels

Comments

@ElvisYzz
Copy link

Summary of Bug

In the recent update of cosmos, the initialization of checkState is moved from initFromStore to InitChain. So every time we restart the app, the checkState is not initialized because InitChain only executed when the app first starts, which results in the failure if use checkState in beginBlocker/endBlocker.

Steps to Reproduce

  1. add a customized endBlocker that would use checkState, for instance,
lastBlockTime := app.checkState.ctx.BlockHeader().Time
  1. start the app
  2. stop it
  3. start again
@AdityaSripal
Copy link
Member

This is already fixed in #1800

@AdityaSripal
Copy link
Member

Closed #1816 via #1800

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

No branches or pull requests

3 participants