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

feat!: remove blobstream param subspace when upgrading to v2 #3401

Merged
merged 8 commits into from
May 6, 2024

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Apr 28, 2024

Closes #3397
Opens #3411

@rootulp rootulp self-assigned this Apr 28, 2024
app/app.go Show resolved Hide resolved
@rootulp rootulp marked this pull request as ready for review April 30, 2024 10:25
@rootulp rootulp requested a review from a team as a code owner April 30, 2024 10:25
@rootulp rootulp requested review from ramin and cmwaters and removed request for a team April 30, 2024 10:25
Copy link
Contributor

coderabbitai bot commented Apr 30, 2024

Walkthrough

Walkthrough

The changes primarily focus on the blobstream module in the context of app upgrades from version 1 to version 2. A new conditional block in app/app.go ensures the removal of blobstream parameters when upgrading to version 3. Meanwhile, upgrade_test.go sees modifications to better handle import management and to test the absence of blobstream in version 2, adding a specific function to simulate this upgrade scenario.

Changes

File Path Changes Summary
app/app.go Added conditional block in EndBlocker to handle blobstream module params removal on upgrade to v3.
app/test/upgrade_test.go Updated imports, added new tests for blobstream removal in v2, and added function to simulate upgrade from v1 to v2.

Assessment against linked issues

Objective Addressed Explanation
Ensure blobstream does not function in v2 (#3397, #3305)
Remove blobstream CLI commands and gRPC queries in v2 (#3305) Changes related to CLI commands and gRPC queries are not part of the PR changes.
Add migration that deletes state in the blobstream module (#3305) The PR includes removal of blobstream params, but it's unclear if this equates to deleting all state in the module.

Possibly related issues

  • Issue Disable x/blobstream in v2 #3305: This issue is directly addressed by the PR as it involves disabling the blobstream module in v2, which aligns with the changes made in app.go and upgrade_test.go. The PR seems to be part of the implementation for this issue.

Recent Review Details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 05b3d9e and 5e8a96b.
Files selected for processing (2)
  • app/app.go (1 hunks)
  • app/test/upgrade_test.go (4 hunks)
Additional comments not posted (3)
app/test/upgrade_test.go (2)

24-24: Added import statement for logging.

This import is necessary for enhanced logging capabilities within the test suite.


101-123: New function to verify the removal of blobstream parameters in version 2.

This function correctly tests the absence of blobstream parameters in version 2, aligning with the PR's objectives.

app/app.go (1)

458-462: Removal of the blobstream params subspace in the EndBlocker function.

This change is crucial for ensuring that the blobstream functionality is discontinued in version 2 as intended.


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

Note: Auto-reply has been disabled for this repository by the repository owner. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@rootulp rootulp requested review from ninabarbakadze and removed request for ramin April 30, 2024 10:25
@rootulp rootulp added the WS: V2 ✌️ lemongrass hardfork related label Apr 30, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

"github.com/celestiaorg/celestia-app/v2/x/minfee"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params/types/proposal"
packetforwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/packetforward/types"
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate import statement.

- packetforwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/packetforward/types"

This import statement is duplicated and should be removed to clean up the code.


Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
packetforwardtypes "github.com/cosmos/ibc-apps/middleware/packet-forward-middleware/v6/packetforward/types"

@rootulp rootulp merged commit 9f1f03a into celestiaorg:main May 6, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WS: V2 ✌️ lemongrass hardfork related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade test blobstream
4 participants