Skip to content

Conversation

randy-cro
Copy link
Contributor

@randy-cro randy-cro commented Aug 18, 2025

Description

Details in ethermint PR: crypto-org-chain/ethermint#694 and crypto-org-chain/ethermint#695

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

Summary by CodeRabbit

  • Chores
    • Updated an external dependency version and checksum in project/build configs.
  • Bug Fixes / Stability
    • Simulation setup now initializes an ante-cache option to improve test reliability.
  • Chores / Build
    • Added a placeholder object-store for a specific build configuration that will error if invoked; normal builds unaffected.

@randy-cro randy-cro requested a review from a team as a code owner August 18, 2025 08:24
@randy-cro randy-cro requested review from calvinaco and songgaoye and removed request for a team August 18, 2025 08:24
Copy link
Contributor

coderabbitai bot commented Aug 18, 2025

Warning

Rate limit exceeded

@randy-cro has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 10 minutes and 58 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 6e47825 and 0d0cc12.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (2)
  • go.mod (1 hunks)
  • gomod2nix.toml (1 hunks)

Walkthrough

Updates ethermint dependency pins in go.mod and gomod2nix, initializes an AnteCache when constructing the sim app's AnteHandler, and adds a build-tagged placeholder GetObjKVStore method that panics.

Changes

Cohort / File(s) Summary
Dependency: ethermint
go.mod, gomod2nix.toml
Update replace in go.mod to point github.com/evmos/ethermint -> github.com/crypto-org-chain/ethermint at a new pseudo-version; update gomod2nix.toml version and hash for mod."github.com/evmos/ethermint".
Sim app / AnteHandler init
app/sim_test.go
Add import github.com/evmos/ethermint/ante/cache and set AnteCache: cache.NewAnteCache(0) in the AnteHandler options used by NewSimApp.
ObjKVStore placeholder
store/rootmulti/objstore_placeholder.go
Add a build-tagged placeholder method func (rs *Store) GetObjKVStore(key types.StoreKey) types.ObjKVStore that panics with "placeholder does not support GetObjKVStore".

Sequence Diagram(s)

sequenceDiagram
    participant Sim as NewSimApp (sim_test)
    participant Cache as AnteCache
    participant Ante as AnteHandler

    Sim->>Cache: cache.NewAnteCache(0)
    Cache-->>Sim: AnteCache instance
    Sim->>Ante: construct HandlerOptions{..., AnteCache: instance}
    Ante-->>Sim: AnteHandler configured with AnteCache
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20–30 minutes

Possibly related PRs

Suggested reviewers

  • calvinaco
  • songgaoye
  • XinyuCRO

Poem

I nibble code beneath the moon,
I hop and patch and hum a tune.
A cache is born, a dep set right,
A stub stands guard in build-tag night.
Happy hops — the tests take flight! 🥕🐇

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • 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.
  • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration 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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

Copy link

codecov bot commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.79%. Comparing base (a3c2f70) to head (0d0cc12).
⚠️ Report is 97 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #1847       +/-   ##
===========================================
+ Coverage   16.87%   35.79%   +18.91%     
===========================================
  Files          72      127       +55     
  Lines        6163    11812     +5649     
===========================================
+ Hits         1040     4228     +3188     
- Misses       5000     7161     +2161     
- Partials      123      423      +300     

see 73 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

🧹 Nitpick comments (2)
app/sim_test.go (1)

70-81: AnteCache initialization with 0: confirm intended semantics or document

Passing 0 to NewAnteCache likely means “disabled” or “no limit.” If the intent is deterministic sims without caching, add a clarifying comment; if it means “unbounded,” consider a small bounded value to avoid masking cache-related issues.

Apply this small doc diff for clarity:

       MaxTxGasWanted:  0,
-      AnteCache:       cache.NewAnteCache(0),
+      AnteCache:       cache.NewAnteCache(0), // 0 disables ante cache in simulations for determinism

If 0 does not disable caching in this version, please pick the appropriate constant/value exposed by Ethermint (and we can update this accordingly).

store/rootmulti/objstore_placeholder.go (1)

13-15: Make panic message actionable for !objstore builds

The panic is fine for the placeholder, but making it explicit about the build tag helps operators diagnose issues faster. Also add a short doc comment.

+// GetObjKVStore is a stub in !objstore builds.
+// Build with '-tags objstore' to enable object-store backed KV stores.
 func (rs *Store) GetObjKVStore(key types.StoreKey) types.ObjKVStore {
-	panic("placeholder does not support GetObjKVStore")
+	panic("GetObjKVStore is unavailable: build with -tags objstore to enable object store support")
 }
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 3846fde and c69c9d0.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (4)
  • app/sim_test.go (2 hunks)
  • go.mod (1 hunks)
  • gomod2nix.toml (1 hunks)
  • store/rootmulti/objstore_placeholder.go (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • gomod2nix.toml
🧰 Additional context used
🧬 Code Graph Analysis (1)
store/rootmulti/objstore_placeholder.go (1)
store/rootmulti/store.go (1)
  • Store (35-54)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: Run golangci-lint
  • GitHub Check: build (macos-14)
  • GitHub Check: gomod2nix
  • GitHub Check: unittest
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: build (macos-latest)
  • GitHub Check: integration_tests (ibc)
  • GitHub Check: integration_tests (ibc_update_client)
  • GitHub Check: integration_tests (ibc_rly_gas)
  • GitHub Check: integration_tests (upgrade)
  • GitHub Check: integration_tests (ica)
  • GitHub Check: integration_tests (gas)
  • GitHub Check: integration_tests (slow)
  • GitHub Check: integration_tests (unmarked)
  • GitHub Check: integration_tests (ibc_rly_evm)
  • GitHub Check: testground-test
  • GitHub Check: integration_tests (gov)
  • GitHub Check: Analyze (go)
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (2)
app/sim_test.go (1)

18-18: Import of ante/cache is aligned with updated Ethermint

Looks good assuming the replaced Ethermint exposes ante/cache in this version.

store/rootmulti/objstore_placeholder.go (1)

17-19: Consistent behavior for unsupported extra stores

This placeholder continues to panic on unrecognized store types, which is consistent with the non-objstore build behavior. No action needed.

Copy link

socket-security bot commented Aug 18, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgolang/​github.com/​crypto-org-chain/​ethermint@​v0.6.1-0.20250818034006-1a6e81479555 ⏵ v0.6.1-0.20250818090852-991f14f190f17510010010070

View full report

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

♻️ Duplicate comments (2)
go.mod (2)

308-308: Regenerate and commit lockfiles after bumping Ethermint.

After adjusting the replace, ensure go.sum and gomod2nix.toml are regenerated and committed. This avoids CI drift and fetch failures.

  • go: run “go mod tidy && go mod download”
  • gomod2nix: regenerate the TOML to capture the new pseudo-version and sums.

You can use:

#!/bin/bash
set -euo pipefail

echo "Tidying go modules..."
go mod tidy
go mod download

if command -v gomod2nix >/dev/null 2>&1; then
  echo "Regenerating gomod2nix.toml..."
  gomod2nix
else
  echo "gomod2nix not installed; please regenerate gomod2nix.toml with your standard workflow."
fi

echo
echo "Diff overview of files likely changed:"
git status --porcelain=1 | rg -n 'go\.sum|gomod2nix\.toml|go\.mod' || true

308-308: Document the removal of Miner JSON-RPC methods as a breaking change and scrub docs.

Given the Ethermint bump is intended to remove miner_* RPCs, please:

  • Add a Breaking Changes entry to CHANGELOG/RELEASE_NOTES.
  • Remove or mark deprecated in docs any occurrences of:
    • miner_setGasPrice, miner_setExtra, miner_start, miner_stop, miner_setEtherbase.

Run this to find lingering references and check for a changelog note:

#!/bin/bash
set -euo pipefail

echo "Scanning repo for miner_* RPC references (code, tests, docs):"
rg -n -C2 -g '!**/vendor/**' -P '"?miner_(setGasPrice|setExtra|start|stop|setEtherbase)"?' || true

echo
echo "Looking for Breaking Changes mention:"
rg -n -C2 -i 'breaking change|miner_' CHANGELOG* RELEASE* docs || true

If helpful, I can draft the CHANGELOG snippet and a docs diff for the endpoints page—say the word.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 27257fb and 6e47825.

📒 Files selected for processing (1)
  • go.mod (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (21)
  • GitHub Check: gomod2nix
  • GitHub Check: build (macos-latest)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: build (macos-14)
  • GitHub Check: unittest
  • GitHub Check: Run golangci-lint
  • GitHub Check: integration_tests (ibc_update_client)
  • GitHub Check: integration_tests (gov)
  • GitHub Check: integration_tests (gas)
  • GitHub Check: integration_tests (ibc_timeout)
  • GitHub Check: integration_tests (upgrade)
  • GitHub Check: integration_tests (unmarked)
  • GitHub Check: integration_tests (slow)
  • GitHub Check: integration_tests (ica)
  • GitHub Check: integration_tests (ibc_rly_evm)
  • GitHub Check: integration_tests (ibc)
  • GitHub Check: integration_tests (ibc_rly_gas)
  • GitHub Check: Analyze (go)
  • GitHub Check: Socket Security: Pull Request Alerts
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan

@randy-cro randy-cro force-pushed the feat/remove-non-geth-json-rpc branch from 6e47825 to 0d0cc12 Compare August 18, 2025 09:13
@randy-cro randy-cro added this pull request to the merge queue Aug 18, 2025
Merged via the queue into crypto-org-chain:main with commit 1d19c42 Aug 18, 2025
44 checks passed
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.

2 participants