refactor: make MessagePool address resolution at finality non-blocking#7334
refactor: make MessagePool address resolution at finality non-blocking#7334sudo-shashank wants to merge 3 commits into
Conversation
WalkthroughMessagePool address resolution, insertion, sequence lookup, and reorg handling now use async calls to finality-based address resolution. RPC handlers, nonce tracking, and chain-sync call sites await the updated mempool APIs, and dev test RPC helpers add retry handling for missing JSON-RPC results. ChangesAsync MessagePool and RPC helper updates
Estimated code review effort: 3 (Moderate) | ~30 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@src/dev/subcommands/tests_cmd/helpers.rs`:
- Around line 306-324: `rpc_call_with_retry` is being used for a non-idempotent
write RPC, which can duplicate state changes on retry. Update the helper usage
in `rpc_call_with_retry`/`wallet.rs` so mutating calls like
`Filecoin.MarketAddBalance` use `rpc_call` instead of the retrying wrapper, or
split the helper so only safe read-only calls like `MpoolPending` and
`FilecoinAddressToEthAddress` use retries. If you keep the helper generic, add a
clear doc note on `rpc_call_with_retry` warning that it must not be used for
state-mutating RPCs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 03e5925e-78fe-4760-8d2f-3bdc6681fb43
📒 Files selected for processing (3)
src/dev/subcommands/tests_cmd/helpers.rssrc/dev/subcommands/tests_cmd/wallet.rssrc/message_pool/msgpool/msg_pool.rs
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
filecoin-project/lotus(manual)
🚧 Files skipped from review as they are similar to previous changes (1)
- src/message_pool/msgpool/msg_pool.rs
Summary of changes
Changes introduced in this pull request:
load_required_tipset_by_heightnon blocking #7289:MessagePoolnow uses the non-blockingresolve_to_deterministic_address_at_finality_async.Reference issue to close (if applicable)
Closes #7308
Other information and links
Change checklist
Outside contributions
Summary by CodeRabbit
Bug Fixes
New Features