fix(rpc): Update expensive migration check#7128
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
ChangesExpensive Fork Epoch Payload and ETH RPC Retry
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
2c661a5 to
2d3ab7c
Compare
3acda30 to
0ac22c3
Compare
7a9e81e to
df63051
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
scripts/tests/api_compare/filter-list (1)
4-6: ⚡ Quick winAdd upstream references for new ignored RPCs.
Please add short comments (issue/PR links) next to these new exclusions to make re-enabling trackable and avoid permanent blind spots.
Suggested update
!Filecoin.StateGetNetworkParams !Filecoin.EthGetBlockByHash !Filecoin.EthGetBlockByNumber +# https://github.com/filecoin-project/lotus/pull/13640 +!Filecoin.StateGetNetworkParams +# https://github.com/filecoin-project/lotus/pull/13618 +!Filecoin.EthGetBlockByHash +!Filecoin.EthGetBlockByNumber🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@scripts/tests/api_compare/filter-list` around lines 4 - 6, The three newly ignored RPC methods (Filecoin.StateGetNetworkParams, Filecoin.EthGetBlockByHash, and Filecoin.EthGetBlockByNumber) in the filter-list file are missing upstream reference comments. Add short comments with issue or PR links next to each of these three exclusions to document why they are being ignored and make it possible to track when they can be re-enabled in the future, ensuring these are not permanently blindspotted.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@scripts/tests/api_compare/filter-list`:
- Around line 4-6: The three newly ignored RPC methods
(Filecoin.StateGetNetworkParams, Filecoin.EthGetBlockByHash, and
Filecoin.EthGetBlockByNumber) in the filter-list file are missing upstream
reference comments. Add short comments with issue or PR links next to each of
these three exclusions to document why they are being ignored and make it
possible to track when they can be re-enabled in the future, ensuring these are
not permanently blindspotted.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 08983cce-b48e-4e93-87f7-acc3394e68e6
📒 Files selected for processing (7)
scripts/devnet/.envscripts/tests/api_compare/filter-listscripts/tests/api_compare/filter-list-gatewayscripts/tests/api_compare/filter-list-offlinescripts/tests/bootstrapper/.envscripts/tests/snapshot_parity/.envsrc/rpc/methods/state.rs
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
filecoin-project/lotus(manual)
✅ Files skipped from review due to trivial changes (3)
- scripts/tests/snapshot_parity/.env
- scripts/tests/api_compare/filter-list-offline
- scripts/tests/bootstrapper/.env
🚧 Files skipped from review as they are similar to previous changes (1)
- src/rpc/methods/state.rs
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 9 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Follow up PR #7192
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit
Release Notes
eth_call,eth_estimateGas,eth_getCode, andeth_getStorageAtbehavior during expensive network-upgrade migrations: requests are refused only at the upgrade epoch, andeth_getCode/eth_getStorageAtnow retry on expensive-fork conditions.eth_estimateGasto re-execute the call after a gas estimation failure to surface accurate revert details when applicable.