-
Notifications
You must be signed in to change notification settings - Fork 126
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
fix: prioritize upgrade module in module manager #2987
Conversation
WalkthroughThe pull request introduces modifications to the Iris application, focusing on the management of the upgrade module. Key changes include adding a new import for the Changes
Possibly related PRs
Suggested reviewers
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/modules.go (1)
51-51
: Consider removing commented-out imports for cleanup.
The commented-outibcclientclient
import can be safely removed unless you plan to reintroduce it soon. Reducing commented-out code enhances readability.- //ibcclientclient "github.com/cosmos/ibc-go/v8/modules/core/02-client/client"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
app/app.go
(2 hunks)app/modules.go
(1 hunks)
🔇 Additional comments (2)
app/app.go (2)
15-15
: The new upgradetypes
import is appropriate to support upgrade module priorities.
This is a valid import to ensure the upgrade module is acknowledged.
141-145
: Ensuring the upgrade module is processed first is critical for stable upgrade flow.
By setting app.mm.SetOrderPreBlockers(upgradetypes.ModuleName)
, the upgrade module is now run before others during pre-block, preventing upgrade-related operations from being overshadowed or delayed. Verify that no other modules depend on pre-block execution prior to the upgrade module.
To confirm no inter-module dependencies are affected, please run integration testing on block upgrades, especially if other modules rely on a pre-block initialization step.
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
app/app.go
(4 hunks)app/keepers/keepers.go
(3 hunks)app/rpc/auth.go
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- app/app.go
🔇 Additional comments (3)
app/keepers/keepers.go (3)
71-71
: New IBC Connection import looks appropriate.
The addition of ibcconnectiontypes
aligns with the use of ibcconnectiontypes.Params
in the param key registration. Ensure that corresponding references and configurations for the IBC connection module are properly tested to confirm integration correctness.
617-620
: Registering new param sets requires thorough testing.
You've introduced a new key table for IBC client parameters, including registration of &ibcconnectiontypes.Params{}
. Confirm that this param set is exercised in tests and that any existing upgrade or migration scripts handle these newly registered parameters appropriately.
636-638
: Ensure subspaces and key tables are synchronized across all IBC modules.
Registering subspaces for ibcexported.ModuleName
, ibctransfertypes
, and icahosttypes
is consistent with the new IBC connection param updates. Double-check that all IBC modules dependent on these subspaces are properly linked, configured, and documented, especially if additional param sets or custom logic rely on them.
Summary by CodeRabbit