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

unregister x/metrics & call BeginBlocker directly #1686

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

pirtleshell
Copy link
Member

@pirtleshell pirtleshell commented Aug 28, 2023

Description

registering x/metrics to the module manager breaks the AppHash because its consensus version is added to the ModuleVersionMap which affects the AppHash.

this commit unregisters the module so it is not consensus breaking. instead, it directly calls the BeginBlock before running the module manager's.

Checklist

  • Changelog has been updated as necessary.

registering x/metrics to the module breaks the AppHash because its
consensus version is added to the ModuleVersionMap which affects the
AppHash.

this commit unregisters the module so it is not consensus breaking.
instead, it directly calls the BeginBlock before running the module
manager's.
Copy link
Member

@nddeluca nddeluca left a comment

Choose a reason for hiding this comment

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

looks good, nice simple injection into the app struct and good comments 👍

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

Successfully merging this pull request may close these issues.

3 participants